Skip to content

Commit

Permalink
Fix dependency shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
Erdragh committed Nov 30, 2023
1 parent 3595f3e commit 0dd34de
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ subprojects {
exclude(group = "org.jetbrains.kotlin")
}

if (!isCommon) {
}

implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-crypt:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-dao:$exposedVersion")
Expand Down Expand Up @@ -115,7 +112,7 @@ subprojects {
}

dependencies {
"include"("net.dv8tion:JDA:$jdaVersion") {
"shadow"("net.dv8tion:JDA:$jdaVersion") {
exclude(module = "opus-java")
exclude(group = "org.jetbrains.kotlin")
}
Expand All @@ -124,7 +121,9 @@ subprojects {
tasks {
"shadowJar"(ShadowJar::class) {
archiveClassifier.set("dev-shadow")
configurations = listOf(shadowCommon)
configurations = listOf(shadowCommon, project.configurations.findByName("shadow"))

relocate("org.apache.commons.collections4", "dev.erdragh.shadowed.org.apache.commons.collections4")

exclude(".cache/**") //Remove datagen cache from jar.
exclude("**/astralbot/datagen/**") //Remove data gen code from jar.
Expand Down

0 comments on commit 0dd34de

Please sign in to comment.