diff options
author | zaaarf <zaaarf@proton.me> | 2023-09-08 20:42:10 +0200 |
---|---|---|
committer | zaaarf <zaaarf@proton.me> | 2023-09-08 20:42:10 +0200 |
commit | d1a466cffdc4a395d49aec69c83b2e58d779d927 (patch) | |
tree | a959243c50b3b942fd8eb0c479bdf857a8914049 /build.gradle | |
parent | fe7a0a7f934c677ce3aa860d786b369c95a7faf5 (diff) |
fix: fixed gitversion mangling name
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 7 |
1 files changed, 3 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()}" } |