Skip to content

Latest commit

 

History

History
42 lines (38 loc) · 1.23 KB

File metadata and controls

42 lines (38 loc) · 1.23 KB

Overview

  1. Steps to setup a new Github repo, with a public, published jar artifact

Steps

  1. Choose a name (eg. "foo-utils-jvm")
  2. Choose a License (eg. MIT)
  3. Create new repo in GitHub
    1. Public
    2. Set license (eg. MIT)
  4. clone (git+ssh)
    1. Better if you clone that create the repo locally first
  5. (might already be done) Rename master branch to main
    1. git branch -m master main
    2. git branch --delete --force master
    3. git push origin --delete master
  6. Update License (add your name or organization name)
  7. settings.gradle.kts
    1. rootProject.name = "foo-utils-jvm"
  8. gradle wrap
  9. Open in IDE (eg. Intellij)
  10. copy .gitignore from another repo
  11. copy .gitattributes from another repo
  12. git add
  13. Make build.gradle.kts
    1. set mvnArtifactId
    2. set dependencies
  14. Make source tree
    1. mkdir -p src/{main,test}/{java,resources}/
    2. mkdir -p src/{main,test}/java/io/github/
  15. Choose a package
    1. io.github..
  16. module-info.java file
    1. touch src/main/java/module-info.java
  17. Make readme.md
  18. Write source code
  19. IDEA:
    1. Move panels to Right-Top

Publish