mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-18 23:01:03 +00:00
manually create terra-refmap.json because loom is dumb
This commit is contained in:
@@ -3,44 +3,30 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
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:0.6-SNAPSHOT")
|
||||
}
|
||||
plugins {
|
||||
`java-library`
|
||||
id("fabric-loom").version("0.6-SNAPSHOT")
|
||||
}
|
||||
|
||||
apply(plugin = "fabric-loom")
|
||||
apply(plugin = "java-library")
|
||||
|
||||
configureCommon()
|
||||
|
||||
val mixinVersion = "0.8.1+build.21"
|
||||
val loomVersion = "0.6-SNAPSHOT"
|
||||
tasks.named<ShadowJar>("shadowJar") {
|
||||
relocate("org.json", "com.dfsek.terra.lib.json")
|
||||
relocate("org.yaml", "com.dfsek.terra.lib.yaml")
|
||||
}
|
||||
|
||||
group = "com.dfsek.terra.fabric"
|
||||
|
||||
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.5")
|
||||
"mappings"("net.fabricmc:yarn:1.16.5+build.5:v2")
|
||||
"modImplementation"("net.fabricmc:fabric-loader:0.11.2")
|
||||
|
||||
// Fabric API. This is technically optional, but you probably want it anyway.
|
||||
"modImplementation"("net.fabricmc.fabric-api:fabric-api:0.31.0+1.16")
|
||||
|
||||
"compileOnly"("net.fabricmc:sponge-mixin:${mixinVersion}")
|
||||
"annotationProcessor"("net.fabricmc:sponge-mixin:${mixinVersion}")
|
||||
"annotationProcessor"("net.fabricmc:fabric-loom:${loomVersion}")
|
||||
}
|
||||
|
||||
tasks.named<ShadowJar>("shadowJar") {
|
||||
|
||||
Reference in New Issue
Block a user