32 lines
763 B
Kotlin
32 lines
763 B
Kotlin
|
|
import org.gradle.jvm.tasks.Jar
|
|
|
|
description = "Umbrella : Backend"
|
|
|
|
plugins {
|
|
application
|
|
}
|
|
|
|
application{
|
|
mainClass = "de.srsoftware.umbrella.backend.Application"
|
|
}
|
|
|
|
dependencies{
|
|
implementation(project(":core"))
|
|
implementation(project(":translations"))
|
|
implementation(project(":user"))
|
|
implementation(project(":web"))
|
|
|
|
implementation("de.srsoftware:tools.optionals:1.0.0")
|
|
implementation("de.srsoftware:tools.util:2.0.3")
|
|
}
|
|
|
|
tasks.jar {
|
|
manifest.attributes["Main-Class"] = "de.srsoftware.umbrella.backend.Application"
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
val dependencies = configurations
|
|
.runtimeClasspath
|
|
.get()
|
|
.map(::zipTree) // OR .map { zipTree(it) }
|
|
from(dependencies)
|
|
} |