From 9c4167821a1079c339cb60e83c623256fa1a3352 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Fri, 8 Sep 2023 21:23:55 +0200 Subject: fix: fix gitversion mangling name --- build.gradle | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'build.gradle') diff --git a/build.gradle b/build.gradle index 2b3c16b..ce1dad4 100644 --- a/build.gradle +++ b/build.gradle @@ -4,11 +4,10 @@ plugins { } archivesBaseName = 'mapper' -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() } @@ -22,8 +21,4 @@ dependencies { implementation 'ftbsc:lll:0.4.2' implementation 'com.google.auto.service:auto-service-annotations:1.1.0' annotationProcessor 'com.google.auto.service:auto-service:1.1.0' -} - -jar { - archiveFileName = "${jar.archiveBaseName.get()}-${project.version.split('-')[0]}.${jar.archiveExtension.get()}" -} +} \ No newline at end of file -- cgit v1.2.3-56-ga3b1