浏览代码

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
Daniel Mitterdorfer 7 年之前
父节点
当前提交
aeaebddf4a
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      benchmarks/build.gradle

+ 4 - 0
benchmarks/build.gradle

@@ -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,