Potentially fix memory leak with the mixin AP
This commit is contained in:
parent
e545a92166
commit
a8e0c8edbb
1 changed files with 7 additions and 3 deletions
|
@ -340,16 +340,20 @@ public class AbstractPlugin implements Plugin<Project> {
|
|||
extension.getUnmappedModCollection().from(jarTask);
|
||||
}
|
||||
|
||||
project.getLogger().lifecycle("Configuring compiler arguments for Java");
|
||||
// Disable some things used by log4j via the mixin AP that prevent it from being garbage collected
|
||||
System.setProperty("log4j2.disable.jmx", "true");
|
||||
System.setProperty("log4j.shutdownHookEnabled", "false");
|
||||
|
||||
project.getLogger().info("Configuring compiler arguments for Java");
|
||||
new JavaApInvoker(project).configureMixin();
|
||||
|
||||
if (project.getPluginManager().hasPlugin("scala")) {
|
||||
project.getLogger().lifecycle("Configuring compiler arguments for Scala");
|
||||
project.getLogger().info("Configuring compiler arguments for Scala");
|
||||
new ScalaApInvoker(project).configureMixin();
|
||||
}
|
||||
|
||||
if (project.getPluginManager().hasPlugin("org.jetbrains.kotlin.kapt")) {
|
||||
project.getLogger().lifecycle("Configuring compiler arguments for Kapt plugin");
|
||||
project.getLogger().info("Configuring compiler arguments for Kapt plugin");
|
||||
new KaptApInvoker(project).configureMixin();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue