From d1a466cffdc4a395d49aec69c83b2e58d779d927 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Fri, 8 Sep 2023 20:42:10 +0200 Subject: [PATCH] fix: fixed gitversion mangling name --- build.gradle | 7 +++---- src/main/java/ftbsc/lll/loader/LilleroLoader.java | 3 +++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index e9fae11..828150e 100644 --- a/build.gradle +++ b/build.gradle @@ -4,11 +4,10 @@ plugins { } archivesBaseName = 'loader' -version = gitVersion() +version = gitVersion().split('-').getAt(0).replace('dirty', '') java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8 withSourcesJar() withJavadocJar() } @@ -28,5 +27,5 @@ dependencies { } jar { - archiveFileName = "${jar.archiveBaseName.get()}-${project.version.split('-')[0]}.${jar.archiveExtension.get()}" + archiveFileName = "${jar.archiveBaseName.get()}-${project.version}.${jar.archiveExtension.get()}" } diff --git a/src/main/java/ftbsc/lll/loader/LilleroLoader.java b/src/main/java/ftbsc/lll/loader/LilleroLoader.java index 044ca47..97d4cf6 100644 --- a/src/main/java/ftbsc/lll/loader/LilleroLoader.java +++ b/src/main/java/ftbsc/lll/loader/LilleroLoader.java @@ -66,6 +66,9 @@ public class LilleroLoader implements ILaunchPluginService { */ private final Set targetClasses = new HashSet<>(); + /** + * THe default constructor. + */ public LilleroLoader() { LOGGER.info(INIT, "Patch Loader initialized"); }