- code: https://github.com/watson-developer-cloud/java-sdk
- maven: http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22java-sdk%22
We use Sonatype as repository manager, it's used as the input channel for the Central Repository running the Sonatype Open Source Repository Hosting(OSSRH) service.
If you are not familiar with Sonatype and/or the maven release process please read the following material:
- Sonatype: http://central.sonatype.org/pages/apache-maven.html
- Releasing artifacts to Sonatype: http://kirang89.github.io/blog/2013/01/20/uploading-your-jar-to-maven-central/
- Install GPG, and create a public key. More info: http://central.sonatype.org/pages/working-with-pgp-signatures.html
-
Make sure that
pom.xml
andbuild.gradle
have the same version number. In thepom.xml
file the version should ends with -SNAPSHOT -
With the SCM connection configured correctly you can perform a release deployment to OSSRH (Staging) with:
`mvn release:clean release:prepare`
You will have to answer prompts for versions and tags. That will tag and commit a new version into your repository automatically.
- Deploy to maven central:
`mvn release:perform`
This execution will deploy to OSSRH and release to the Central Repository in one go.