Notes for developers and maintainers.
./gradlew build
./gradlew jar
./gradlew bintrayUpload
On Bintray, manually sync to Maven Central
- Make sure Bintray credentials are configured in
$HOME/.gradle/gradle.properties
- Configure
bintrayUsername
andbintrayApiKey
- Configure
mavenUsername
andmavenPassword
(Maven Central user token name and user token password)
- Configure
- Update version in
gradle.properties
- Full build
./gradlew build
- Commit and push
- Commit
git add gradle.properties && git commit -m "bump version to VERSION"
- Push
git push origin
- Commit
- Validate Travis build
travis status
- Push to Bintray
./gradlew bintrayUpload -i
- This will push to JCenter and also sync w/ Maven Central
- Tag the release
- Tag w/ current version
git tag VERSION
- Push tags
git push --tags
- Tag w/ current version
- Update version in
gradle.properties
back to the next version SNAPSHOT - Commit and push
- Commit
git add gradle.properties && git commit -m "bump version to snapshot"
- Push
git push origin
- Commit
- If needed, sync changes to appropriate branch, e.g.:
- Check out the major version branch:
git checkout 2.x
- Rebase:
git rebase master
- push:
git push origin 2.x
- Check out the major version branch: