correctly jar-in-jar dependencies

This commit is contained in:
dfsek
2021-12-21 16:33:49 -07:00
parent 5dbc2c2895
commit 3caf3a9380

View File

@@ -33,8 +33,8 @@ dependencies {
modImplementation(fabricApi.module(apiModule, Versions.Fabric.fabricAPI))?.let { include(it) }
}
modImplementation(include("me.lucko", "fabric-permissions-api", "0.1-SNAPSHOT"))
modImplementation(include("cloud.commandframework", "cloud-fabric", Versions.Libraries.cloud))
include(modImplementation("me.lucko", "fabric-permissions-api", "0.1-SNAPSHOT"))
include(modImplementation("cloud.commandframework", "cloud-fabric", Versions.Libraries.cloud))
}
loom {
@@ -62,6 +62,10 @@ val remapped = tasks.register<RemapJarTask>("remapShadedJar") {
remapAccessWidener.set(true)
}
tasks.named("assemble").configure {
dependsOn("remapShadowJar")
}
tasks.withType<Jar> {
finalizedBy(remapped)
}