Skip to content

Commit

Permalink
Fix building bwc versions (#40361)
Browse files Browse the repository at this point in the history
Account for openjdk when figuring out what java version to
use for building bwc versions.
  • Loading branch information
alpar-t authored and gwbrown committed Mar 22, 2019
1 parent f38f7dc commit 86b8132
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion distribution/bwc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,9 @@ bwcVersions.forPreviousUnreleased { VersionCollection.UnreleasedVersionInfo unre
'JAVA_HOME',
getJavaHome(it, Integer.parseInt(
lines
.findAll({ it.startsWith("ES_BUILD_JAVA=java") })
.findAll({ it.startsWith("ES_BUILD_JAVA=")})
.collect({ it.replace("ES_BUILD_JAVA=java", "").trim() })
.collect({ it.replace("ES_BUILD_JAVA=openjdk", "").trim() })
.join("!!")
))
)
Expand Down

0 comments on commit 86b8132

Please sign in to comment.