diff --git a/build.gradle b/build.gradle index 593d5fc..cc851fe 100644 --- a/build.gradle +++ b/build.gradle @@ -1,8 +1,10 @@ plugins { id 'java' + id 'com.palantir.git-version' version '0.13.0' } -group 'ftbsc.lll.processor' +archivesBaseName = 'processor' +version = gitVersion() java.toolchain.languageVersion = JavaLanguageVersion.of(8) @@ -16,3 +18,7 @@ dependencies { implementation 'com.squareup:javapoet:1.13.0' implementation 'ftbsc:lll:0.3.0' } + +jar { + archiveFileName = "${jar.archiveBaseName.get()}-${project.version.split('-')[0]}.${jar.archiveExtension.get()}" +} \ No newline at end of file