File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
buildSrc/src/main/groovy/org/elasticsearch/hadoop/gradle Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11package org.elasticsearch.hadoop.gradle
22
33import org.apache.tools.ant.taskdefs.condition.Os
4+ import org.elasticsearch.gradle.info.BuildParams
45import org.elasticsearch.gradle.info.GenerateGlobalBuildInfoTask
56import org.elasticsearch.gradle.info.GlobalBuildInfoPlugin
67import org.elasticsearch.gradle.info.JavaHome
@@ -91,8 +92,7 @@ class BuildPlugin implements Plugin<Project> {
9192
9293 // We snap the runtime to java 8 since Hadoop needs to see some significant
9394 // upgrades to support any runtime higher than that
94- List<JavaHome > javaVersions = project. rootProject. ext. javaVersions as List<JavaHome >
95- JavaHome esHadoopRuntimeJava = javaVersions. find { it. version == 8 }
95+ JavaHome esHadoopRuntimeJava = BuildParams . javaVersions. find { it. version == 8 }
9696 if (esHadoopRuntimeJava == null ) {
9797 throw new GradleException (
9898 ' $JAVA8_HOME must be set to build ES-Hadoop. ' +
@@ -202,7 +202,7 @@ class BuildPlugin implements Plugin<Project> {
202202 }
203203 project. ext. gitHead = project. rootProject. ext. gitHead
204204 project. ext. revHash = project. rootProject. ext. revHash
205- project. ext. javaVersions = project . rootProject . ext . javaVersions
205+ project. ext. javaVersions = BuildParams . javaVersions
206206 project. ext. isRuntimeJavaHomeSet = project. rootProject. ext. isRuntimeJavaHomeSet
207207 }
208208
Original file line number Diff line number Diff line change 2020package org.elasticsearch.hadoop.gradle.fixture.hadoop
2121
2222import org.apache.tools.ant.taskdefs.condition.Os
23+ import org.elasticsearch.gradle.info.BuildParams
2324import org.elasticsearch.hadoop.gradle.util.WaitForURL
2425import org.elasticsearch.hadoop.gradle.fixture.hadoop.conf.InstanceConfiguration
2526import org.gradle.api.GradleException
@@ -236,7 +237,7 @@ class InstanceInfo {
236237
237238 /* * Return the java home used by this node. */
238239 String getJavaHome () {
239- return javaVersion == null ? project. runtimeJavaHome : project . javaVersions. find { it. version == javaVersion }. javaHome. absolutePath
240+ return javaVersion == null ? project. runtimeJavaHome : BuildParams . javaVersions. find { it. version == javaVersion }. javaHome. absolutePath
240241 }
241242
242243 /* * Returns debug string for the command that started this node. */
You can’t perform that action at this time.
0 commit comments