Skip to content

Commit

Permalink
Use shadowCommon to shadow JDA into jar
Browse files Browse the repository at this point in the history
  • Loading branch information
Erdragh committed Dec 1, 2023
1 parent 7a9fbcc commit 208ab60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ subprojects {
}

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

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

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kotlin.code.style=official
org.gradle.jvmargs=-Xmx2G
org.gradle.jvmargs=-Xmx3G

# Minecraft things
enabledPlatforms=fabric,forge
Expand Down

0 comments on commit 208ab60

Please sign in to comment.