Honor RUNTIME_JAVA_HOME for benchmarks (#28962)

With this commit we configure our microbenchmarks project to use the
configured RUNTIME_JAVA_HOME and to fallback on JAVA_HOME so this
behavior is consistent  with the rest of the Elasticsearch build.

Closes #28961
This commit is contained in:
Daniel Mitterdorfer 2018-03-12 07:58:07 +01:00 committed by GitHub
parent 4216fc9f64
commit aeaebddf4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -85,6 +85,10 @@ shadowJar {
classifier = 'benchmarks' classifier = 'benchmarks'
} }
runShadow {
executable = new File(project.runtimeJavaHome, 'bin/java')
}
// alias the shadowJar and runShadow tasks to abstract from the concrete plugin that we are using and provide a more consistent interface // alias the shadowJar and runShadow tasks to abstract from the concrete plugin that we are using and provide a more consistent interface
task jmhJar( task jmhJar(
dependsOn: shadowJar, dependsOn: shadowJar,