Przeglądaj źródła

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 lat temu
rodzic
commit
aeaebddf4a
1 zmienionych plików z 4 dodań i 0 usunięć
  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,