diff options
author | zaaarf <me@zaaarf.foo> | 2023-09-08 20:38:10 +0200 |
---|---|---|
committer | zaaarf <me@zaaarf.foo> | 2023-09-08 20:38:40 +0200 |
commit | 0d097dcb2e69d0c2daeadf9a9d839929d9d166db (patch) | |
tree | 803ac7c0d0e9917d650de3e83b2912322a567e0f | |
parent | 2b1bf9eac48f7e675a251bd622c836e79a291c3d (diff) |
fix: fixed gitversion mangling name
-rw-r--r-- | build.gradle | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle index 3f51438..9dcb592 100644 --- a/build.gradle +++ b/build.gradle @@ -4,11 +4,10 @@ plugins { } archivesBaseName = 'processor' -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() } @@ -25,5 +24,5 @@ dependencies { } jar { - archiveFileName = "${jar.archiveBaseName.get()}-${project.version.split('-')[0]}.${jar.archiveExtension.get()}" + archiveFileName = "${jar.archiveBaseName.get()}-${project.version}.${jar.archiveExtension.get()}" } |