Skip to content

Commit

Permalink
Remove snapshot conditional for bwc snapshots (elastic#28657)
Browse files Browse the repository at this point in the history
The build.snapshot flag used by the main build was being propagated down
into the bwc snapshot builds, which is not correct. The bwc subprojects
are always meant to be snapshot builds, or null if they do not
exist. Marking these builds as non snapshots threw the release off as it
was looking for -SNAPSHOT builds.

Relates elastic#28641
  • Loading branch information
hub-cap committed Feb 13, 2018
1 parent 90ac017 commit 99a0879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distribution/bwc/build.gradle
Expand Up @@ -139,7 +139,7 @@ subprojects {
} else {
executable new File(checkoutDir, 'gradlew').toString()
}
args ":distribution:deb:assemble", ":distribution:rpm:assemble", ":distribution:zip:assemble", "-Dbuild.snapshot=${System.getProperty('build.snapshot') ?: 'true'}"
args ":distribution:deb:assemble", ":distribution:rpm:assemble", ":distribution:zip:assemble", "-Dbuild.snapshot=true"
final LogLevel logLevel = gradle.startParameter.logLevel
if ([LogLevel.QUIET, LogLevel.WARN, LogLevel.INFO, LogLevel.DEBUG].contains(logLevel)) {
args "--${logLevel.name().toLowerCase(Locale.ENGLISH)}"
Expand Down

0 comments on commit 99a0879

Please sign in to comment.