- Steps to setup a new Github repo, with a public, published jar artifact
- Choose a name (eg. "foo-utils-jvm")
- Choose a License (eg. MIT)
- Create new repo in GitHub
- Public
- Set license (eg. MIT)
- clone (git+ssh)
- Better if you clone that create the repo locally first
- (might already be done) Rename master branch to main
git branch -m master maingit branch --delete --force mastergit push origin --delete master
- Update License (add your name or organization name)
settings.gradle.kts- rootProject.name = "foo-utils-jvm"
gradle wrap- Open in IDE (eg. Intellij)
- copy
.gitignorefrom another repo - copy
.gitattributesfrom another repo git add- Make
build.gradle.kts- set mvnArtifactId
- set dependencies
- Make source tree
mkdir -p src/{main,test}/{java,resources}/mkdir -p src/{main,test}/java/io/github/
- Choose a package
- io.github..
module-info.javafiletouch src/main/java/module-info.java
- Make
readme.md - Write source code
- IDEA:
- Move panels to Right-Top
- See publish doc