-
Develop. Develop. Develop.
-
Update the version number in
pom.xml
(example: from0.5.2-SNAPSHOT
to0.5.2
). Update the version number inREADME.md
(example: from0.5.1
to0.5.2
.) Update the version number inexamples/pom.xml
(example: from0.5.2-SNAPSHOT
to0.5.2
.) -
Commit and push to GitHub.
-
Go to https://github.com/qubole/qds-sdk-java/releases and draft a new release: add a tag (example:
0.5.2
) and what changed since the last release. -
Make sure you have Qubole's OSSRH credentials stored in
~/.m2/settings.xml
.<server> <id>ossrh</id> <username>qubole</username> <password>ENCRYPTED-PASSWORD</password> </server>
-
Make sure you have
gpg
installed and Qubole's private key in the correct location. -
Upload to OSSRH (make sure to compile with java 1.6)
export JAVA_HOME=`/usr/libexec/java_home -v 1.6` # or equivalent for your platform. mvn -Pshaded,release clean deploy
-
Check that the release is okay by checking the staging site and then promote it to Central.
mvn -Pshaded,release nexus-staging:release
-
Update the
apidocs
directory in thegh-pages
branch with the latest docs.# Switch back to Java 8 export JAVA_HOME=`/usr/libexec/java_home -v 1.8` # Generate the javadocs while on the master branch mvn clean javadoc:javadoc # Checkout the gh-pages branch git checkout gh-pages # Create a new directory for current version cd apidocs mkdir 0.5.2 # Move the docs to this directory and point the latest symlink to it mv ../target/site/apidocs/* 0.5.2/ rm latest ln -s 0.5.2/ latest # Commit and push the changes. git add 0.5.2 latest git commit -m "Update docs for 0.5.2" git push origin gh-pages # Checkout the master branch again git checkout master
-
Update the version number in
pom.xml
andexamples/pom.xml
back to SNAPSHOT (example: from0.5.2
to0.5.3-SNAPSHOT
). Commit and push to Github.