Skip to content

Latest commit

 

History

History
44 lines (38 loc) · 1.32 KB

DEVELOPMENT.md

File metadata and controls

44 lines (38 loc) · 1.32 KB

Notes for developers and maintainers.

Useful Commands

Build

./gradlew build

Build without Test

./gradlew jar

Push to Bintray

./gradlew bintrayUpload

On Bintray, manually sync to Maven Central

Release Process

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