diff --git a/build.gradle b/build.gradle index 2a7a906b994e7ef595d9f885d0afdd2174d9cc48..10c7519a4ee7ff6d381f95a3842965e0d79abb44 100644 --- a/build.gradle +++ b/build.gradle @@ -44,15 +44,18 @@ java { withJavadocJar() } -shadowJar { - archiveFileName = 'TLA2B.jar' +jar { manifest { - attributes( - 'Main-Class': 'de.tla2b.TLA2B' - ) + attributes([ + "Main-Class": "de.tla2b.TLA2B", + ]) } } +shadowJar { + archiveFileName = 'TLA2B.jar' +} + // Don't publish the shadowJar to Maven Central. Code from: // https://github.com/johnrengelman/shadow/issues/586#issuecomment-708375599 // https://github.com/johnrengelman/shadow/issues/651#issuecomment-815921124