fix: fixed gitversion mangling name

This commit is contained in:
zaaarf 2023-09-08 20:42:10 +02:00
parent fe7a0a7f93
commit d1a466cffd
No known key found for this signature in database
GPG key ID: 6445A5CD15E5B40C
2 changed files with 6 additions and 4 deletions

View file

@ -4,11 +4,10 @@ plugins {
} }
archivesBaseName = 'loader' archivesBaseName = 'loader'
version = gitVersion() version = gitVersion().split('-').getAt(0).replace('dirty', '')
java { java {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar() withSourcesJar()
withJavadocJar() withJavadocJar()
} }
@ -28,5 +27,5 @@ dependencies {
} }
jar { jar {
archiveFileName = "${jar.archiveBaseName.get()}-${project.version.split('-')[0]}.${jar.archiveExtension.get()}" archiveFileName = "${jar.archiveBaseName.get()}-${project.version}.${jar.archiveExtension.get()}"
} }

View file

@ -66,6 +66,9 @@ public class LilleroLoader implements ILaunchPluginService {
*/ */
private final Set<String> targetClasses = new HashSet<>(); private final Set<String> targetClasses = new HashSet<>();
/**
* THe default constructor.
*/
public LilleroLoader() { public LilleroLoader() {
LOGGER.info(INIT, "Patch Loader initialized"); LOGGER.info(INIT, "Patch Loader initialized");
} }