EasyAuth/fabric/build.gradle

66 lines
1.5 KiB
Groovy

plugins {
id "com.github.johnrengelman.shadow" version "5.0.0"
}
repositories {
// Carpet mod
maven {
url 'https://jitpack.io'
}
maven {
url 'https://masa.dy.fi/maven'
}
}
configurations {
shadow
}
architectury {
platformSetupLoomIde()
}
dependencies {
minecraft("com.mojang:minecraft:${rootProject.minecraft_version}")
mappings("net.fabricmc:yarn:${rootProject.yarn_mappings}:v2")
modImplementation("net.fabricmc:fabric-loader:${rootProject.loader_version}")
modImplementation("net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_version}")
// Remove the next line if you don't want to depend on the API
modImplementation("me.shedaniel:architectury:${rootProject.architectury_version}:fabric")
compileOnly(project(path: ":common")) {
transitive = false
}
runtimeOnly(project(path: ":common", configuration: "transformDevelopmentFabric")) {
transitive = false
}
shadow(project(path: ":common", configuration: "transformProductionFabric")) {
transitive = false
}
// carpetMod
// from masa's maven
//modImplementation "carpet:fabric-carpet:${project.minecraft_version}-${project.carpet_core_version}"
// jitpack for quicker updating
modImplementation "com.github.gnembon:fabric-carpet:${project.carpet_branch}-SNAPSHOT"
}
processResources {
filesMatching("fabric.mod.json") {
expand "version": project.version
}
inputs.property "version", project.version
}
shadowJar {
configurations = [project.configurations.shadow]
classifier "shadow"
}
remapJar {
dependsOn(shadowJar)
input.set(shadowJar.archivePath)
classifier "fabric"
}