Skip to content

Commit 09ad17c

Browse files
committed
Carry through build.snapshot property on Scala builds
This commit also carries through the build.snapshot property when forking the Scala build. This ensures that we are building snapshots or not together with the rest of the artifacts.
1 parent 6b1a0c2 commit 09ad17c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

buildSrc/src/main/groovy/org/elasticsearch/hadoop/gradle/scala/ScalaVariantPlugin.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ class ScalaVariantPlugin implements Plugin<Project> {
4646
properties.put('localRepo', 'true')
4747
}
4848

49+
properties.put('build.snapshot', System.getProperty('build.snapshot', 'true'))
50+
4951
if (OperatingSystem.current().isWindows()) {
5052
crossBuildForVariant.executable('gradlew.bat')
5153
} else {

0 commit comments

Comments
 (0)