diff --git a/tools/gradle/src/main/java/org/teavm/gradle/TeaVMPlugin.java b/tools/gradle/src/main/java/org/teavm/gradle/TeaVMPlugin.java index 726554813..234f59206 100644 --- a/tools/gradle/src/main/java/org/teavm/gradle/TeaVMPlugin.java +++ b/tools/gradle/src/main/java/org/teavm/gradle/TeaVMPlugin.java @@ -253,6 +253,7 @@ public class TeaVMPlugin implements Plugin { task.getPreservedClasses().addAll(configuration.getPreservedClasses()); task.getDebugInformation().convention(configuration.getDebugInformation()); task.getFastGlobalAnalysis().convention(configuration.getFastGlobalAnalysis()); + task.getOptimization().convention(configuration.getOptimization()); task.getOutOfProcess().convention(configuration.getOutOfProcess()); task.getProcessMemory().convention(configuration.getProcessMemory()); task.getProperties().putAll(configuration.getProperties());