From a8c1ecb429a4f176bd02c23d67b06457ab1fc1ef Mon Sep 17 00:00:00 2001 From: Graham Date: Tue, 22 Dec 2020 12:39:36 +0000 Subject: [PATCH] Remove use of deprecated mainClassName property where possible We can't remove it from all/build.gradle.kts yet, as the shadow plugin still tries to read it. Signed-off-by: Graham --- archive/build.gradle.kts | 2 +- bundler/build.gradle.kts | 2 +- compress-cli/build.gradle.kts | 2 +- crc32/build.gradle.kts | 2 +- decompiler/build.gradle.kts | 2 +- deob-ast/build.gradle.kts | 2 +- deob/build.gradle.kts | 2 +- game/build.gradle.kts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/archive/build.gradle.kts b/archive/build.gradle.kts index 6c43bb93..cb9b0cd3 100644 --- a/archive/build.gradle.kts +++ b/archive/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } application { - mainClassName = "org.openrs2.archive.ArchiveCommandKt" + mainClass.set("org.openrs2.archive.ArchiveCommandKt") } dependencies { diff --git a/bundler/build.gradle.kts b/bundler/build.gradle.kts index 960c2fb2..509341ab 100644 --- a/bundler/build.gradle.kts +++ b/bundler/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } application { - mainClassName = "org.openrs2.bundler.BundleCommandKt" + mainClass.set("org.openrs2.bundler.BundleCommandKt") } dependencies { diff --git a/compress-cli/build.gradle.kts b/compress-cli/build.gradle.kts index 381013da..621169d7 100644 --- a/compress-cli/build.gradle.kts +++ b/compress-cli/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } application { - mainClassName = "org.openrs2.compress.cli.CompressCommandKt" + mainClass.set("org.openrs2.compress.cli.CompressCommandKt") } dependencies { diff --git a/crc32/build.gradle.kts b/crc32/build.gradle.kts index 68466d03..1214548a 100644 --- a/crc32/build.gradle.kts +++ b/crc32/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } application { - mainClassName = "org.openrs2.crc32.Crc32CommandKt" + mainClass.set("org.openrs2.crc32.Crc32CommandKt") } dependencies { diff --git a/decompiler/build.gradle.kts b/decompiler/build.gradle.kts index d3d2d92a..4d9b4c2f 100644 --- a/decompiler/build.gradle.kts +++ b/decompiler/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } application { - mainClassName = "org.openrs2.decompiler.DecompileCommandKt" + mainClass.set("org.openrs2.decompiler.DecompileCommandKt") applicationDefaultJvmArgs = listOf("-Xmx3G") } diff --git a/deob-ast/build.gradle.kts b/deob-ast/build.gradle.kts index 8f6edfc2..539be16b 100644 --- a/deob-ast/build.gradle.kts +++ b/deob-ast/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } application { - mainClassName = "org.openrs2.deob.ast.DeobfuscateAstCommandKt" + mainClass.set("org.openrs2.deob.ast.DeobfuscateAstCommandKt") } dependencies { diff --git a/deob/build.gradle.kts b/deob/build.gradle.kts index 21e240f5..ed283c69 100644 --- a/deob/build.gradle.kts +++ b/deob/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } application { - mainClassName = "org.openrs2.deob.DeobfuscateCommandKt" + mainClass.set("org.openrs2.deob.DeobfuscateCommandKt") } dependencies { diff --git a/game/build.gradle.kts b/game/build.gradle.kts index bb8f0cbe..d045642f 100644 --- a/game/build.gradle.kts +++ b/game/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } application { - mainClassName = "org.openrs2.game.GameCommandKt" + mainClass.set("org.openrs2.game.GameCommandKt") } dependencies {