Build: Change bwc java home check to new signature (elastic/x-pack-elasticsearch#4392)
The signature for getJavaHome is changing with elastic/elasticsearch#29548. Original commit: elastic/x-pack-elasticsearch@85434d0a13
This commit is contained in:
parent
2578346877
commit
2574d4e704
|
@ -194,9 +194,9 @@ subprojects {
|
|||
workingDir = xpackCheckoutDir
|
||||
if (["5.6", "6.0", "6.1"].contains(bwcBranch)) {
|
||||
// we are building branches that are officially built with JDK 8, push JAVA8_HOME to JAVA_HOME for these builds
|
||||
environment('JAVA_HOME', "${-> getJavaHome(project, 8, "JAVA8_HOME is required to build BWC versions for BWC branch [" + bwcBranch + "]")}")
|
||||
environment('JAVA_HOME', getJavaHome(it, 8))
|
||||
} else if ("6.2".equals(bwcBranch)) {
|
||||
environment('JAVA_HOME', "${-> getJavaHome(project, 9, "JAVA9_HOME is required to build BWC versions for BWC branch [" + bwcBranch + "]")}")
|
||||
environment('JAVA_HOME', getJavaHome(it, 9))
|
||||
} else {
|
||||
environment('JAVA_HOME', project.compilerJavaHome)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue