Skip to content
Snippets Groups Projects
Commit 288bce93 authored by SeeBasTStick's avatar SeeBasTStick
Browse files

added automatic version tagging for jars

parent 659ece85
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,8 @@ plugins { ...@@ -12,6 +12,8 @@ plugins {
// Apply the application plugin to add support for building a CLI application. // Apply the application plugin to add support for building a CLI application.
application application
id("com.github.johnrengelman.shadow") version "5.2.0" id("com.github.johnrengelman.shadow") version "5.2.0"
id("com.palantir.git-version") version "0.12.2"
} }
repositories { repositories {
...@@ -42,10 +44,16 @@ dependencies { ...@@ -42,10 +44,16 @@ dependencies {
} }
tasks.test { tasks.test {
useJUnitPlatform() useJUnitPlatform()
} }
val gitVersion: groovy.lang.Closure<*> by extra
tasks.shadowJar{
this.version = gitVersion().toString()
}
application { application {
// Define the main class for the application. // Define the main class for the application.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment