Skip to content

Commit

Permalink
Add remapping version of shade
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest authored Jan 10, 2024
1 parent c416765 commit 9bc92d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ loom {
val shade: Configuration by configurations.creating {
configurations.implementation.get().extendsFrom(this)
}
val modShade: Configuration by configurations.creating {
configurations.modImplementation.get().extendsFrom(this)
}

// Configures the output directory for when building from the `src/resources` directory.
sourceSets {
Expand Down Expand Up @@ -167,7 +170,7 @@ tasks {
// include some dependencies within our mod jar file.
named<ShadowJar>("shadowJar") {
archiveClassifier.set("dev") // TODO: machete gets confused by the `dev` prefix.
configurations = listOf(shade)
configurations = listOf(shade, modShade)
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

Expand Down

0 comments on commit 9bc92d7

Please sign in to comment.