Skip to content

Commit

Permalink
Tidy redundant fatjar logic
Browse files Browse the repository at this point in the history
  • Loading branch information
holly-cummins committed Aug 11, 2024
1 parent e33b3a2 commit 687a21f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions modded-minecraft/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,6 @@ jar {
}
}

task farjar(type: Jar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from {
configurations.runtimeClasspath.findAll { file ->
// Exclude the transitive dependencies of minecraft dependency type, which should not go into the fat jar
// when true, jar file is unzipped and added
// The one exception is the forge jar itself
!configurations.minecraft.contains(file)
}.collect { it.isDirectory() ? it : zipTree(it) }
}
}

jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from {
Expand Down

0 comments on commit 687a21f

Please sign in to comment.