EasyAuth/forge/build.gradle

57 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"]
useFabricMixin = true
}
dependencies {
minecraft("com.mojang:minecraft:${rootProject.minecraft_version}")
mappings("net.fabricmc:yarn:${rootProject.yarn_mappings}:v2")
forge("net.minecraftforge:forge:${rootProject.minecraft_version}-${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: "transformDevelopmentForge")) {
transitive = false
}
shadow(project(path: ":common", configuration: "transformProductionForge")) {
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",
])
}
}