Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 2.43 KB

RELEASE.md

File metadata and controls

61 lines (41 loc) · 2.43 KB

#How to release a new version of the wrapper

Requirements:

Bump version constants in

  • build.gradle
  • src/main/java/com/soundcloud/api/package-info.java
  • src/main/java/com/soundcloud/api/CloudAPI.java
  • README.md (javadoc, jar-all)

Regenerate + publish javadoc:

$ ./update_javadoc.sh

Regenerate pom.xml

$ gradle writePom

This doesn't work properly at the moment - use gradle uploadArchive and copy build/poms/pom-default.xml to pom.xml.

Releasing to Sonatype OSS (staging)

(make sure there are no uncommitted changes in the repo)
$ mvn -Dresume=false release:prepare # tag repo, bump pom.xml (needs SNAPSHOT tag in pom)
$ mvn release:perform -Darguments="-Dgpg.keyname=jan@soundcloud.com -Dgpg.passphrase="

This will build and sign all artifcats and upload them to the staging server. In order to release you need to login to Sonatype OSS, from the "Build Promotion" tab on the left hand site select "Staging Repositories". The release you just uploaded should show up in the list. Select it and pick "Close". This will check if the deployment is complete and properly signed, then create a staging repository which can be used for testing. Once everything works you select "Release" to actually release it to the release repo. The release repo is synced with Maven Central.

Releasing snapshot versions

This is for releasing developer version of the package and can be done anytime, just make sure build.gradle version contains a -SNAPSHOT suffix, then run:

$ gradle uploadArchive

Snapshots can be found in the snapshot repo.

Release a jar-all version to github:

$ gradle jarAll