We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 538b23e commit 5e420b6Copy full SHA for 5e420b6
1 file changed
build.gradle.kts
@@ -1,4 +1,3 @@
1
-import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
3
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
4
@@ -36,12 +35,8 @@ dependencies {
36
35
application {
37
mainModule.set("ladysnake.translationhelper.app")
38
mainClass.set("ladysnake.translationhelper.TranslationHelperKt")
39
-}
40
-
41
-tasks.withType<ShadowJar> {
42
- manifest {
43
- attributes["Main-Class"] = "ladysnake.translationhelper.TranslationHelper"
44
- }
+ // Shadow still uses the old attribute
+ mainClassName = mainClass.get()
45
}
46
47
configure<JavaPluginConvention> {
0 commit comments