From e7da43f4ed3a10f8da12dad4ad96e0f36c6ecdff Mon Sep 17 00:00:00 2001
From: dgelessus <dgelessus@users.noreply.github.com>
Date: Tue, 12 Nov 2024 12:51:22 +0100
Subject: [PATCH] Declare Main-Class for regular jar again, not just shadowJar

The shadowJar task automatically inherits the manifest from the regular
jar, so it only needs to be declared once.
---
 build.gradle | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/build.gradle b/build.gradle
index 2a7a906..10c7519 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
-- 
GitLab