diff --git a/build.gradle.kts b/build.gradle.kts index b4fac5f..002befb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,4 +1,3 @@ -import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform import org.jetbrains.kotlin.gradle.tasks.KotlinCompile @@ -36,12 +35,8 @@ dependencies { application { mainModule.set("ladysnake.translationhelper.app") mainClass.set("ladysnake.translationhelper.TranslationHelperKt") -} - -tasks.withType { - manifest { - attributes["Main-Class"] = "ladysnake.translationhelper.TranslationHelper" - } + // Shadow still uses the old attribute + mainClassName = mainClass.get() } configure {