Skip to content

Commit 5e5a316

Browse files
committed
Change to use config prop for nightly build flag
1 parent 27ae25f commit 5e5a316

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ServiceStackIDEA/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ apply plugin: 'org.jetbrains.intellij'
77
dependencies {
88

99
}
10-
11-
if(System.env.BUILD_NUMBER != null) {
10+
Properties properties = System.properties;
11+
if(System.env.BUILD_NUMBER != null && properties.getProperty("servicestackidea.publish_nightly", null) != null) {
12+
// Append build number to version for a new nightly build version to be published.
1213
version = "${version}.$System.env.BUILD_NUMBER"
1314
}
1415

1516
String jbUser;
1617
String jbPass;
1718

18-
Properties properties = System.properties;
19+
1920
if(properties.getProperty("jetbrains.plugins.user", null) == null) {
2021
properties.load(project.file('./local.properties').newDataInputStream())
2122
}

0 commit comments

Comments
 (0)