From e10eeb113613233cf091a6438f39db926c32468b Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Thu, 19 Dec 2024 09:35:38 +0100 Subject: [PATCH] fixed jar task Signed-off-by: Stephan Richter --- de.srsoftware.oidc.app/build.gradle.kts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/de.srsoftware.oidc.app/build.gradle.kts b/de.srsoftware.oidc.app/build.gradle.kts index 06baa7d..9a709ef 100644 --- a/de.srsoftware.oidc.app/build.gradle.kts +++ b/de.srsoftware.oidc.app/build.gradle.kts @@ -1,5 +1,9 @@ description = "SRSoftware OIDC: app" +plugins { + java +} + dependencies{ implementation("org.json:json:20240303") implementation("de.srsoftware:tools.http:1.0.1") @@ -11,4 +15,14 @@ dependencies{ implementation(project(":de.srsoftware.oidc.datastore.encrypted")) implementation(project(":de.srsoftware.oidc.datastore.file")) implementation(project(":de.srsoftware.oidc.web")) +} + +tasks.jar { + manifest.attributes["Main-Class"] = "de.srsoftware.oidc.app.Application" + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + val dependencies = configurations + .runtimeClasspath + .get() + .map(::zipTree) // OR .map { zipTree(it) } + from(dependencies) } \ No newline at end of file