Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 979 Bytes

File metadata and controls

33 lines (26 loc) · 979 Bytes

Releasing

Set the projects semantic version as follows:

SoftwareVersion currentVersion = BuildscriptVersionResolver.projectVersion(
        project, SemanticVersion.get(file("$rootDir/version.properties"))
)
./gradlew release -PbintrayUsername=<bintrayUsername> -PbintrayPassword=<bintrayPassword> -PreleaseType=<MAJOR|MINOR|PATCH>

Snapshot

SoftwareVersion currentVersion = BuildscriptVersionResolver.projectVersion(
        project, new SnapshotVersion(SemanticVersion.get(file("$rootDir/version.properties")))
)
./gradlew snapshot -PbintrayUsername=<bintrayUsername> -PbintrayPassword=<bintrayPassword>

Override

To bypass the standard release flow and upload directly to bintray use the following task

  • manually set the version in version.properties
./gradlew clean build bintrayUpload -PbintrayUsername=<bintrayUsername> -PbintrayPassword=<bintrayPassword> -PreleaseType=MAJOR
 --stacktrace