Skip to content

Prepare repository for release

Daniel Frey edited this page Oct 14, 2013 · 6 revisions

The following instructions prepare the code in the repository for release to Maven Central. The library is synchronized to Maven Central via http://oss.sonatype.org.

./gradlew test - runs all unit tests

./gradlew install - installs to local repository

./gradlew upload -Prelease=true - uploads to sonatype for synchronization to maven central

git tag -a mythtv-service-api-X.Y.Z -m 'Release of mythtv-service-api-X.Y.Z' - tags release on github

git push --tags - pushes release tag to github

The final step in these commands pushes the release version to http://oss.sonatype.org. Once pushed, these release needs to first be Closed, then Released.

Login to the Sonatype interface and select the Staging Repositories link. Select the Repository 'org.mythtv', then press the Close button. Add a description and close out the dialog box. Select the 'org.mythtv' Repository again and press the Release button. Add a description and close out the dialog box.

The released version will be synchronized to Maven Central within 2 hours time.

Search Maven Central here: http://search.maven.org/#search%7Cga%7C1%7Corg.mythtv

Clone this wiki locally