Skip to content

Commit 4e8e643

Browse files
committed
Refactor: Transitive transformation shadow bundle
1 parent 7e575d4 commit 4e8e643

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

fabric/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ dependencies {
6666

6767
// Common (Do not touch)
6868
common(project(":common", configuration = "namedElements")) { isTransitive = false }
69-
shadowBundle(project(":common", configuration = "transformProductionFabric"))
69+
shadowBundle(project(":common", configuration = "transformProductionFabric")) { isTransitive = false }
7070

7171
// Finish the configuration
7272
setupConfigurations()

forge/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ dependencies {
9595

9696
// Common (Do not touch)
9797
common(project(":common", configuration = "namedElements")) { isTransitive = false }
98-
shadowBundle(project(path = ":common", configuration = "transformProductionForge"))
98+
shadowBundle(project(path = ":common", configuration = "transformProductionForge")) { isTransitive = false }
9999

100100
// Finish the configuration
101101
setupConfigurations()

neoforge/build.gradle.kts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ plugins {
1111

1212
architectury {
1313
platformSetupLoomIde()
14-
neoForge()
14+
neoForge {
15+
platformPackage = "forge"
16+
}
1517
}
1618

1719
loom {
@@ -67,27 +69,21 @@ dependencies {
6769

6870
// Common (Do not touch)
6971
common(project(":common", configuration = "namedElements")) { isTransitive = false }
70-
shadowBundle(project(path = ":common", configuration = "transformProductionNeoForge"))
72+
shadowBundle(project(path = ":common", configuration = "transformProductionNeoForge")) { isTransitive = false }
7173

7274
// Finish the configuration
7375
setupConfigurations()
7476
}
7577

7678
tasks {
77-
processResources {
78-
from(project(":common").file("src/main/resources/lambda.accesswidener")) {
79-
into("/assets/") // Copy the access wideners because the API was not included for NeoForge
80-
}
81-
}
82-
8379
shadowJar {
8480
archiveVersion = "$modVersion+$minecraftVersion"
8581
configurations = listOf(shadowBundle)
8682
archiveClassifier = "dev-shadow"
8783
}
8884

8985
remapJar {
90-
dependsOn(processResources, shadowJar)
86+
dependsOn(shadowJar)
9187

9288
archiveVersion = "$modVersion+$minecraftVersion"
9389
inputFile = shadowJar.get().archiveFile

0 commit comments

Comments
 (0)