Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.13 KB

README.new-version.md

File metadata and controls

59 lines (39 loc) · 1.13 KB

How to create a new version for maven repo

create sources.jar

  • $ jar cvf sources.jar src

create java doc jar

  • $ mkdir javadoc
  • $ javadoc -d javadoc -sourcepath src/main/java/ -subpackages com.jjoe64
  • $ jar cvf javadoc.jar javadoc

change version in gradle.properties

uncomment part for publishing in build.gradle

(once) create a gpg file

  • gpg --gen-key

(once) publish key

=> needs some time

hardcode gpg key password in maven_push.gradle

hardcode user/pwd of nexus account in maven_push.gradle

success gradle task uploadArchives

  • ./gradlew --rerun-tasks uploadArchives
  • enter gpg info (id:D8C3B041 / path: /Users/jonas/.gnupg/secring.gpg / PWD)

open https://oss.sonatype.org

login

Staging Repositiories

search: jjoe64

Close entry

Refresh/Wait

Release entry

Wait some days

update java doc

$ javadoc -d javadoc -sourcepath src/main/java/ -subpackages com.jjoe64 $ mv javadoc/ .. $ git checkout gh-pages $ rm -rf javadoc $ mv ../javadoc/ . $ git add javadoc $ git commit -a