Skip to content

Commit

Permalink
Fix shadowJar task
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Mar 22, 2021
1 parent 538b23e commit 5e420b6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -36,12 +35,8 @@ dependencies {
application {
mainModule.set("ladysnake.translationhelper.app")
mainClass.set("ladysnake.translationhelper.TranslationHelperKt")
}

tasks.withType<ShadowJar> {
manifest {
attributes["Main-Class"] = "ladysnake.translationhelper.TranslationHelper"
}
// Shadow still uses the old attribute
mainClassName = mainClass.get()
}

configure<JavaPluginConvention> {
Expand Down

0 comments on commit 5e420b6

Please sign in to comment.