Skip to content

Commit

Permalink
removing automatic determination of isRelease
Browse files Browse the repository at this point in the history
every build will now be considered a snapshot build unless -Drelease=true is specified on the command line
this avoids weird situations involving missing tags and is better overall
  • Loading branch information
lbergelson committed May 17, 2016
1 parent 8485225 commit 25e9174
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ dependencies {
sourceCompatibility = 1.8
targetCompatibility = 1.8


final isRelease = versionDetails().commitDistance == 0
final isRelease = Boolean.getBoolean("release")
version = isRelease ? gitVersion() : gitVersion() + "-SNAPSHOT"

logger.info("build for version:" + version)
Expand Down

0 comments on commit 25e9174

Please sign in to comment.