Revert: "Always fork the java compiler" Fixes #453
This reverts 0cfa88f73b
as it causes OOM issues when building fabric api.
dev/0.11
parent
e124d48387
commit
2b5d3d4a3a
|
@ -29,7 +29,6 @@ import org.gradle.api.artifacts.ConfigurationContainer;
|
||||||
import org.gradle.api.plugins.JavaPlugin;
|
import org.gradle.api.plugins.JavaPlugin;
|
||||||
import org.gradle.api.plugins.JavaPluginConvention;
|
import org.gradle.api.plugins.JavaPluginConvention;
|
||||||
import org.gradle.api.tasks.SourceSet;
|
import org.gradle.api.tasks.SourceSet;
|
||||||
import org.gradle.api.tasks.compile.JavaCompile;
|
|
||||||
import org.gradle.api.tasks.javadoc.Javadoc;
|
import org.gradle.api.tasks.javadoc.Javadoc;
|
||||||
import org.gradle.jvm.tasks.Jar;
|
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 javadoc = (Javadoc) p.getTasks().getByName(JavaPlugin.JAVADOC_TASK_NAME);
|
||||||
javadoc.setClasspath(main.getOutput().plus(main.getCompileClasspath()));
|
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 -> {
|
p.afterEvaluate(project -> {
|
||||||
LoomGradleExtension extension = LoomGradleExtension.get(project);
|
LoomGradleExtension extension = LoomGradleExtension.get(project);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue