mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-19 11:02:33 +00:00
56 lines
1.6 KiB
Plaintext
56 lines
1.6 KiB
Plaintext
import com.dfsek.terra.configureCommon
|
|
import net.fabricmc.loom.LoomGradleExtension
|
|
import net.fabricmc.loom.task.RemapJarTask
|
|
|
|
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
name = "Fabric"
|
|
url = uri("https://maven.fabricmc.net/")
|
|
}
|
|
}
|
|
// dependencies {
|
|
// classpath("net.fabricmc:fabric-loom:+")
|
|
// }
|
|
}
|
|
|
|
plugins {
|
|
id("fabric-loom").version("0.5.9")
|
|
`java-library`
|
|
}
|
|
//apply(plugin = "fabric-loom")
|
|
|
|
configureCommon()
|
|
|
|
group = "com.dfsek.terra.fabric"
|
|
|
|
|
|
configure<LoomGradleExtension> {
|
|
accessWidener("src/main/resources/terra.accesswidener")
|
|
}
|
|
|
|
tasks.register<RemapJarTask>("remapShadedJar") {
|
|
setProperty("input", file("build/libs/fabric-${version}-shaded.jar"))
|
|
setProperty("addNestedDependencies", false)
|
|
setProperty("remapAccessWidener", true)
|
|
}
|
|
|
|
dependencies {
|
|
"shadedApi"(project(":common"))
|
|
"shadedImplementation"("org.yaml:snakeyaml:1.27")
|
|
"shadedImplementation"("com.googlecode.json-simple:json-simple:1.1.1")
|
|
|
|
|
|
// To change the versions see the gradle.properties file
|
|
"minecraft"("com.mojang:minecraft:1.16.4")
|
|
"mappings"("net.fabricmc:yarn:1.16.4+build.6:v2")
|
|
"modImplementation"("net.fabricmc:fabric-loader:0.10.6+build.214")
|
|
|
|
// Fabric API. This is technically optional, but you probably want it anyway.
|
|
"modImplementation"("net.fabricmc.fabric-api:fabric-api:0.25.1+build.416-1.16")
|
|
|
|
"compileOnly"("net.fabricmc:sponge-mixin:+")
|
|
"annotationProcessor"("net.fabricmc:sponge-mixin:+")
|
|
"annotationProcessor"("net.fabricmc:fabric-loom:+")
|
|
} |