We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8fba38 commit 2e12a35Copy full SHA for 2e12a35
gradle/hacks/turbocharge-jvm-opts.gradle
@@ -57,8 +57,8 @@ allprojects {
57
// are not part of up-to-date checks but these are internal JVM flags so we
58
// don't care.
59
//
60
- // Pass VM options via -J only with a custom javaHome AND when java toolchains are not used.
61
- if (task.options.forkOptions.javaHome != null && task.javaCompiler.getOrNull() == null) {
+ // Pass VM options via -J when a custom javaHome is used and we're in fork mode.
+ if (task.options.fork && task.options.forkOptions.javaHome != null) {
62
return vmOpts.collect {"-J" + it}
63
} else {
64
return vmOpts
0 commit comments