From ae13ce049f0861644f3ab516be454fd43f0856e6 Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Sun, 19 Sep 2021 22:13:22 +0200 Subject: [PATCH] Add jar metadata and support generating fat jars --- build.gradle.kts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index fbc3432..fbdefcc 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,6 +6,9 @@ plugins { // Apply the application plugin to add support for building a CLI application in Java. application + + // For generating fat jars + id("com.github.johnrengelman.shadow") version "latest.release" } group = "de.jotoho" @@ -39,6 +42,16 @@ tasks.test { useJUnitPlatform() } +tasks.jar { + manifest { + attributes( + "Implementation-Title" to "waituntil", + "Implementation-Version" to "${project.version}", + "Main-Class" to "de.jotoho.waituntil.StartKt" + ) + } +} + tasks.withType { kotlinOptions.jvmTarget = "16" }