mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue