Skip to content

Commit d82b13e

Browse files
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
1 parent fb0636f commit d82b13e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

benchmarks/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ shadowJar {
8585
classifier = 'benchmarks'
8686
}
8787

88+
runShadow {
89+
executable = new File(project.runtimeJavaHome, 'bin/java')
90+
}
91+
8892
// alias the shadowJar and runShadow tasks to abstract from the concrete plugin that we are using and provide a more consistent interface
8993
task jmhJar(
9094
dependsOn: shadowJar,

0 commit comments

Comments
 (0)