Honor RUNTIME_JAVA_HOME for benchmarks
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
@@ -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,
