56 lines
1.3 KiB
Groovy
56 lines
1.3 KiB
Groovy
plugins {
|
|
id "com.github.johnrengelman.shadow" version "5.0.0"
|
|
}
|
|
|
|
configurations {
|
|
shadow
|
|
}
|
|
|
|
architectury {
|
|
platformSetupLoomIde()
|
|
}
|
|
|
|
loom {
|
|
// Enable this for yarn to work
|
|
//useFabricMixin = true
|
|
mixinConfigs = ["mixins.simpleauth.json"]
|
|
}
|
|
|
|
dependencies {
|
|
minecraft("com.mojang:minecraft:${rootProject.architect.minecraft}")
|
|
mappings("net.fabricmc:yarn:${rootProject.yarn_mappings}:v2")
|
|
forge("net.minecraftforge:forge:${rootProject.architect.minecraft}-${rootProject.forge_version}")
|
|
// Remove the next line if you don't want to depend on the API
|
|
modCompile("me.shedaniel:architectury:${rootProject.architectury_version}:forge")
|
|
|
|
compileOnly(project(path: ":common")) {
|
|
transitive = false
|
|
}
|
|
runtimeOnly(project(path: ":common", configuration: "transformForgeFakeMod")) {
|
|
transitive = false
|
|
}
|
|
shadow(project(path: ":common", configuration: "transformForge")) {
|
|
transitive = false
|
|
}
|
|
}
|
|
|
|
shadowJar {
|
|
exclude "fabric.mod.json"
|
|
|
|
configurations = [project.configurations.shadow]
|
|
classifier "shadow"
|
|
}
|
|
|
|
remapJar {
|
|
dependsOn(shadowJar)
|
|
input.set(shadowJar.archivePath)
|
|
archiveClassifier = "forge"
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes([
|
|
"MixinConfigs": "mixins.simpleauth.json",
|
|
])
|
|
}
|
|
} |