fixed jar task
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
description = "SRSoftware OIDC: app"
|
description = "SRSoftware OIDC: app"
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
java
|
||||||
|
}
|
||||||
|
|
||||||
dependencies{
|
dependencies{
|
||||||
implementation("org.json:json:20240303")
|
implementation("org.json:json:20240303")
|
||||||
implementation("de.srsoftware:tools.http:1.0.1")
|
implementation("de.srsoftware:tools.http:1.0.1")
|
||||||
@@ -12,3 +16,13 @@ dependencies{
|
|||||||
implementation(project(":de.srsoftware.oidc.datastore.file"))
|
implementation(project(":de.srsoftware.oidc.datastore.file"))
|
||||||
implementation(project(":de.srsoftware.oidc.web"))
|
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)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user