From b3187f275bed555d1d025120d41b47d688fbc320 Mon Sep 17 00:00:00 2001 From: yastsc Date: Fri, 27 Sep 2024 22:57:31 +0800 Subject: [PATCH] Fix bugs in build file related to mainClassName --- build.gradle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index f79bedab9d..2b92e303ff 100644 --- a/build.gradle +++ b/build.gradle @@ -15,8 +15,8 @@ repositories { } dependencies { - testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.10.0' - testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.10.0' +// testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.10.0' +// testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.10.0' String javaFxVersion = '17.0.7' implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'win' @@ -53,6 +53,8 @@ application { shadowJar { archiveFileName = 'star.jar' + mainClassName = 'star.main.Launcher' + archiveClassifier = null } run { @@ -60,4 +62,4 @@ run { enableAssertions = true } -mainClassName = 'star.main.Main' +//mainClassName = 'star.main.Main'