forked from sorceress/EasyAuth
54 lines
1.1 KiB
Groovy
54 lines
1.1 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 = ["simpleauth.mixins.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}")
|
||
|
|
||
|
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": "simpleauth.mixins.json",
|
||
|
])
|
||
|
}
|
||
|
}
|