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:
parent
4216fc9f64
commit
aeaebddf4a
|
@ -85,6 +85,10 @@ shadowJar {
|
|||
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
|
||||
task jmhJar(
|
||||
dependsOn: shadowJar,
|
||||
|
|
Loading…
Reference in New Issue