Revert: "Always fork the java compiler" Fixes #453

This reverts 0cfa88f73b as it causes OOM issues when building fabric api.
dev/0.11
modmuss50 2021-07-28 18:19:56 +01:00
parent e124d48387
commit 2b5d3d4a3a
1 changed files with 0 additions and 6 deletions

View File

@ -29,7 +29,6 @@ import org.gradle.api.artifacts.ConfigurationContainer;
import org.gradle.api.plugins.JavaPlugin;
import org.gradle.api.plugins.JavaPluginConvention;
import org.gradle.api.tasks.SourceSet;
import org.gradle.api.tasks.compile.JavaCompile;
import org.gradle.api.tasks.javadoc.Javadoc;
import org.gradle.jvm.tasks.Jar;
@ -107,11 +106,6 @@ public final class CompileConfiguration {
Javadoc javadoc = (Javadoc) p.getTasks().getByName(JavaPlugin.JAVADOC_TASK_NAME);
javadoc.setClasspath(main.getOutput().plus(main.getCompileClasspath()));
p.getTasks().withType(JavaCompile.class).configureEach(compile -> {
// Fork the java compiler to ensure that it does not keep any files open.
compile.getOptions().setFork(true);
});
p.afterEvaluate(project -> {
LoomGradleExtension extension = LoomGradleExtension.get(project);