Skip to content

Commit

Permalink
Exclude slf4j from built jar
Browse files Browse the repository at this point in the history
  • Loading branch information
Erdragh committed Nov 30, 2023
1 parent 1729132 commit 307db6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ subprojects {
implementation("net.dv8tion:JDA:$jdaVersion") {
exclude(module = "opus-java")
exclude(group = "org.jetbrains.kotlin")
exclude(group = "org.slf4j")
}

implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
Expand Down Expand Up @@ -115,6 +116,7 @@ subprojects {
"shadow"("net.dv8tion:JDA:$jdaVersion") {
exclude(module = "opus-java")
exclude(group = "org.jetbrains.kotlin")
exclude(group = "org.slf4j")
}
}

Expand All @@ -127,6 +129,7 @@ subprojects {

exclude(".cache/**") //Remove datagen cache from jar.
exclude("**/astralbot/datagen/**") //Remove data gen code from jar.
exclude("**/org/slf4j/**")
}

"remapJar"(RemapJarTask::class) {
Expand Down
1 change: 1 addition & 0 deletions forge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ dependencies {
forgeRuntimeLibrary("net.dv8tion:JDA:$jdaVersion") {
exclude(module = "opus-java")
exclude(group = "org.jetbrains.kotlin")
exclude(group = "org.slf4j")
}
}

0 comments on commit 307db6a

Please sign in to comment.