Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.07 KB

README.new-version.md

File metadata and controls

52 lines (35 loc) · 1.07 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 user/pwd of nexus account in maven_push.gradle

run 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

How to create a new .jar file

run this gradle task

  • ./gradlew --rerun-tasks clearJar makeJar
  • cp build/outputs/myCompiledLibrary.jar public/GraphView-4.2.0.jar