From 3a8ba568b5d0da14b73f19b79fa611021aea8f10 Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 21 Sep 2021 09:42:19 -0400 Subject: [PATCH] Fixed main -> mainClass deprecation warning --- desktop/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop/build.gradle b/desktop/build.gradle index 981815b7fc..0685daceb5 100644 --- a/desktop/build.gradle +++ b/desktop/build.gradle @@ -9,7 +9,7 @@ def ICON_DIR = new File("$rootDir/core/assets/icons/icon.icns") def platforms = ["Linux64", "Windows64", "Windows32", "MacOS"] task run(dependsOn: classes, type: JavaExec){ - main = project.mainClassName + mainClass = project.mainClassName classpath = sourceSets.main.runtimeClasspath standardInput = System.in workingDir = project.assetsDir @@ -30,7 +30,7 @@ task run(dependsOn: classes, type: JavaExec){ } if(args.contains("debug")){ - main = "mindustry.debug.DebugLauncher" + mainClass = "mindustry.debug.DebugLauncher" } }