Skip to content

Commit 4e1abe1

Browse files
committed
chore: reduce dependency scopes
1 parent 1df2ae7 commit 4e1abe1

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

build.gradle.kts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ loom {
109109
}
110110

111111
createRemapConfigurations(testmod)
112-
createRemapConfigurations(sourceSets.test.get())
113112

114113
runs {
115114
getByName("server") {
@@ -189,21 +188,20 @@ dependencies {
189188
modImplementation("net.fabricmc.fabric-api:$it:${fabricApi.moduleVersion(it, fabric)}")
190189
}
191190

192-
modLocalRuntime("net.fabricmc.fabric-api:fabric-api:$fabric")
191+
modImplementation("lol.bai:badpackets:fabric-$badpackets")
193192

194193
modCompileOnly("mcp.mobius.waila:wthit-api:fabric-$wthit")
194+
modLocalRuntime("mcp.mobius.waila:wthit:fabric-$wthit")
195+
195196
modCompileOnly("me.shedaniel:RoughlyEnoughItems-api-fabric:$rei")
196197
modCompileOnly("dev.architectury:architectury-fabric:$architectury")
198+
modLocalRuntime("me.shedaniel:RoughlyEnoughItems-fabric:$rei")
197199

198-
modImplementation("me.shedaniel.cloth:cloth-config-fabric:$clothConfig")
199-
modImplementation("com.terraformersmc:modmenu:$modmenu")
200-
modImplementation("lol.bai:badpackets:fabric-$badpackets")
200+
modLocalRuntime(modCompileOnly("me.shedaniel.cloth:cloth-config-fabric:$clothConfig")!!)
201+
modLocalRuntime(modCompileOnly("com.terraformersmc:modmenu:$modmenu")!!)
201202

202203
"testmodImplementation"(sourceSets.main.get().output)
203204
"modTestmodImplementation"("net.fabricmc.fabric-api:fabric-api:$fabric")
204-
205-
modLocalRuntime("me.shedaniel:RoughlyEnoughItems-fabric:$rei")
206-
modLocalRuntime("mcp.mobius.waila:wthit:fabric-$wthit")
207205
}
208206

209207
tasks.withType<ProcessResources> {

0 commit comments

Comments
 (0)