diff options
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle index ee02717..0ef9c64 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,10 @@ -apply plugin: 'java-library' +plugins { + id 'java-library' + id 'com.palantir.git-version' version '0.13.0' +} + +archivesBaseName = 'lll' +version = gitVersion() java.toolchain.languageVersion = JavaLanguageVersion.of(8) @@ -11,3 +17,7 @@ dependencies { implementation 'org.ow2.asm:asm-util:9.4' implementation 'org.apache.logging.log4j:log4j-api:2.15.0' } + +jar { + archiveFileName = "${jar.archiveBaseName.get()}-${project.version.split('-')[0]}.${jar.archiveExtension.get()}" +}
\ No newline at end of file |