mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-18 23:01:03 +00:00
add remapShadedJar task to Fabric
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import com.dfsek.terra.configureCommon
|
||||
import net.fabricmc.loom.LoomGradleExtension
|
||||
import net.fabricmc.loom.task.RemapJarTask
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
@@ -29,6 +30,12 @@ configure<LoomGradleExtension> {
|
||||
accessWidener("src/main/resources/terra.accesswidener")
|
||||
}
|
||||
|
||||
tasks.register<RemapJarTask>("remapShadedJar") {
|
||||
setProperty("input", file("build/libs/fabric-${version}-shaded.jar"))
|
||||
setProperty("addNestedDependencies", false)
|
||||
setProperty("remapAccessWidener", true)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
"shadedApi"(project(":common"))
|
||||
"shadedImplementation"("org.yaml:snakeyaml:1.27")
|
||||
|
||||
Reference in New Issue
Block a user