Permalink
Browse files

respond to build properties for release/snapshot

  • Loading branch information...
1 parent a38b450 commit 03ec677271bc5e0fe3118e80fb647857a11e2ac4 @brharrington brharrington committed Aug 23, 2012
Showing with 4 additions and 2 deletions.
  1. +0 −1 build.gradle
  2. +1 −1 gradle.properties
  3. +3 −0 gradle/convention.gradle
View
@@ -15,7 +15,6 @@
*/
// Establish version and status
-ext.releaseVersion = '0.4.15' // TEMPLATE: Set to latest release
ext.githubProjectName = rootProject.name // TEMPLATE: change to match github project, if it doesn't match project name
buildscript {
View
@@ -1 +1 @@
-version=1.4-SNAPSHOT
+version=0.4.15
@@ -1,5 +1,8 @@
// For Artifactory
+ext.performingRelease = project.hasProperty('release') && Boolean.parseBoolean(project.release)
+def versionPostfix = performingRelease?'':'-SNAPSHOT'
+rootProject.version = "${version}${versionPostfix}"
rootProject.status = version.contains('-SNAPSHOT')?'snapshot':'release'
subprojects { project ->

0 comments on commit 03ec677

Please sign in to comment.