dependencies: sl4j-api is an explicit dependency solving resolution of slf4j parts in different versions, "Implementation-Version" added to shadowJar manifest, shadowJar minimization will not remove logging support
This commit is contained in:
committed by
Edwin Jakobs
parent
c340edab96
commit
29a0cbdd75
@@ -104,6 +104,7 @@ dependencies {
|
|||||||
// implementation(libs.csv)
|
// implementation(libs.csv)
|
||||||
|
|
||||||
implementation(libs.kotlinx.coroutines.core)
|
implementation(libs.kotlinx.coroutines.core)
|
||||||
|
implementation(libs.slf4j.api)
|
||||||
implementation(libs.kotlin.logging)
|
implementation(libs.kotlin.logging)
|
||||||
|
|
||||||
when (applicationLogging) {
|
when (applicationLogging) {
|
||||||
@@ -140,10 +141,15 @@ tasks {
|
|||||||
named<ShadowJar>("shadowJar") {
|
named<ShadowJar>("shadowJar") {
|
||||||
manifest {
|
manifest {
|
||||||
attributes["Main-Class"] = applicationMainClass
|
attributes["Main-Class"] = applicationMainClass
|
||||||
|
attributes["Implementation-Version"] = project.version
|
||||||
}
|
}
|
||||||
minimize {
|
minimize {
|
||||||
exclude(dependency("org.openrndr:openrndr-gl3:.*"))
|
exclude(dependency("org.openrndr:openrndr-gl3:.*"))
|
||||||
exclude(dependency("org.jetbrains.kotlin:kotlin-reflect:.*"))
|
exclude(dependency("org.jetbrains.kotlin:kotlin-reflect:.*"))
|
||||||
|
exclude(dependency("org.slf4j:slf4j-simple:.*"))
|
||||||
|
exclude(dependency("org.apache.logging.log4j:log4j-slf4j-impl:.*"))
|
||||||
|
exclude(dependency("com.fasterxml.jackson.core:jackson-databind:.*"))
|
||||||
|
exclude(dependency("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:.*"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
named<org.beryx.runtime.JPackageTask>("jpackage") {
|
named<org.beryx.runtime.JPackageTask>("jpackage") {
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ dependencyResolutionManagement {
|
|||||||
library("kotlin-script-runtime", "org.jetbrains.kotlin", "kotlin-script-runtime").versionRef("kotlin")
|
library("kotlin-script-runtime", "org.jetbrains.kotlin", "kotlin-script-runtime").versionRef("kotlin")
|
||||||
|
|
||||||
version("slf4j", "1.7.36")
|
version("slf4j", "1.7.36")
|
||||||
|
library("slf4j-api", "org.slf4j", "slf4j-api").versionRef("slf4j")
|
||||||
library("slf4j-nop", "org.slf4j", "slf4j-nop").versionRef("slf4j")
|
library("slf4j-nop", "org.slf4j", "slf4j-nop").versionRef("slf4j")
|
||||||
library("slf4j-simple", "org.slf4j", "slf4j-simple").versionRef("slf4j")
|
library("slf4j-simple", "org.slf4j", "slf4j-simple").versionRef("slf4j")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user