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