From a433ca9fe53852ef56b3acb725afe05f8eb23d54 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Sat, 25 Nov 2023 15:57:21 +0100 Subject: [PATCH] gradle: fix passing optimization from DSL to tasks --- tools/gradle/src/main/java/org/teavm/gradle/TeaVMPlugin.java | 1 + 1 file changed, 1 insertion(+) 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());