Skip to content

Commit

Permalink
fix: lang3 classes should not be relocated (fixes #40) (#42)
Browse files Browse the repository at this point in the history
fix(chat): unused `java-diff-utils` classes should remain

build: only include `cloth-config-fabric` in `minecord-api` mod jar
  • Loading branch information
axieum authored Jul 1, 2022
1 parent 12f435a commit 9c107f3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ allprojects {

// Mods
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modImplementation include("me.shedaniel.cloth:cloth-config-fabric:${project.cloth_config_version}") {
modImplementation("me.shedaniel.cloth:cloth-config-fabric:${project.cloth_config_version}") {
exclude module: 'modmenu'
}

Expand Down
4 changes: 0 additions & 4 deletions minecord-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,8 @@ shadowJar {
// relocate 'net.dv8tion.jda', "${dest}.net.dv8tion.jda"
relocate 'okhttp3', "${dest}.okhttp3"
relocate 'okio', "${dest}.okio"
relocate 'org.apache.commons', "${dest}.org.apache.commons"
relocate 'org.jetbrains.annotations', "${dest}.org.jetbrains.annotations"
// relocate 'tomp2p.opuswrapper', "${dest}.tomp2p.opuswrapper"

// Minify the result - remove unused classes
// minimize()
}

// Provide the fat-jar to Fabric's remapping task
Expand Down
3 changes: 0 additions & 3 deletions minecord-chat/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ dependencies {
shadowJar {
archiveClassifier.set('dev')
configurations = [project.configurations.shadow]

// Minify the result - remove unused classes
minimize()
}

// Provide the fat-jar to Fabric's remapping task
Expand Down

0 comments on commit 9c107f3

Please sign in to comment.