Skip to content

Commit 66a1ab9

Browse files
author
Timothy Overly
committed
update build to pull in env for version
1 parent c625504 commit 66a1ab9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ apply plugin: 'idea'
99
apply plugin: 'project-report'
1010
apply plugin: 'releaseNotes'
1111

12+
1213
group = 'com.spidasoftware'
13-
version = '4.0-SNAPSHOT' //for nightly build, ensure that this is the first "version" in the file and keep single quotes
14+
version = '4.0-SNAPSHOT'
15+
def schemaReleaseVersion = System.getenv("SCHEMA_RELEASE_VERSION")
16+
if(schemaReleaseVersion){
17+
println "Using ENV version $schemaReleaseVersion"
18+
version = schemaReleaseVersion
19+
}
1420
description = "Schema"
1521

1622
sourceCompatibility = 1.7

0 commit comments

Comments
 (0)