From 288bce93be59a01649da3839caa127264af41d89 Mon Sep 17 00:00:00 2001 From: SeeBasTStick <sebastian.stock@hhu.de> Date: Tue, 11 Aug 2020 17:30:02 +0200 Subject: [PATCH] added automatic version tagging for jars --- build.gradle.kts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 3d3abeb..718bfe5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,6 +12,8 @@ plugins { // Apply the application plugin to add support for building a CLI application. application id("com.github.johnrengelman.shadow") version "5.2.0" + + id("com.palantir.git-version") version "0.12.2" } repositories { @@ -42,10 +44,16 @@ dependencies { } + tasks.test { useJUnitPlatform() } +val gitVersion: groovy.lang.Closure<*> by extra +tasks.shadowJar{ + this.version = gitVersion().toString() +} + application { // Define the main class for the application. -- GitLab