mynameisjes
mynameisjes
RRailway
Created by mynameisjes on 8/10/2023 in #✋|help
Kotlin Spring Boot Deploy Issue
I guess there is kindof a work arround by making a "fatJar"
tasks.jar {
enabled = true
manifest {
attributes["Main-Class"] = "***"
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(sourceSets.main.get().output)
dependsOn(configurations.runtimeClasspath)
from({
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
})
}
tasks.jar {
enabled = true
manifest {
attributes["Main-Class"] = "***"
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(sourceSets.main.get().output)
dependsOn(configurations.runtimeClasspath)
from({
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
})
}
4 replies
RRailway
Created by mynameisjes on 8/10/2023 in #✋|help
Kotlin Spring Boot Deploy Issue
c78b6dc1-6ade-4474-9dac-6f53ae71e22c
4 replies