diff --git a/benchmarks/build.gradle b/benchmarks/build.gradle index 992462b6fc0..0dc1565e235 100644 --- a/benchmarks/build.gradle +++ b/benchmarks/build.gradle @@ -44,6 +44,8 @@ compileJava.options.compilerArgs << "-Xlint:-cast,-deprecation,-rawtypes,-try,-u // needs to be added separately otherwise Gradle will quote it and javac will fail compileJava.options.compilerArgs.addAll(["-processor", "org.openjdk.jmh.generators.BenchmarkProcessor"]) +run.executable = new File(project.runtimeJavaHome, 'bin/java') + // classes generated by JMH can use all sorts of forbidden APIs but we have no influence at all and cannot exclude these classes forbiddenApisMain.enabled = false