EasyAuth/fabric/build.gradle

69 lines
1.6 KiB
Groovy
Raw Normal View History

2021-01-14 19:12:51 +00:00
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 {
2021-01-19 19:35:44 +00:00
minecraft("com.mojang:minecraft:${rootProject.minecraft_version}")
2021-01-14 19:12:51 +00:00
mappings("net.fabricmc:yarn:${rootProject.yarn_mappings}:v2")
2021-01-19 19:35:44 +00:00
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")
2021-01-14 19:12:51 +00:00
compileOnly(project(path: ":common")) {
transitive = false
exclude(module: "fabric-api")
}
runtimeOnly(project(path: ":common", configuration: "transformedRuntime")) {
transitive = false
exclude(module: "fabric-api")
}
shadow(project(path: ":common", configuration: "transformed")) {
transitive = false
exclude(module: "fabric-api")
}
2021-01-19 12:21:38 +00:00
2021-01-14 19:12:51 +00:00
// 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)
2021-01-19 19:35:44 +00:00
classifier "fabric"
2021-01-14 19:12:51 +00:00
}