mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-22 08:10:40 +00:00
pre5
This commit is contained in:
@@ -4,7 +4,7 @@ import com.modrinth.minotaur.TaskModrinthUpload
|
|||||||
import net.fabricmc.loom.task.RemapJarTask
|
import net.fabricmc.loom.task.RemapJarTask
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("fabric-loom").version("0.10-SNAPSHOT")
|
id("fabric-loom").version("0.10.55")
|
||||||
id("com.modrinth.minotaur").version("1.1.0")
|
id("com.modrinth.minotaur").version("1.1.0")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -16,8 +16,8 @@ tasks.named<ShadowJar>("shadowJar") {
|
|||||||
relocate("org.yaml", "com.dfsek.terra.lib.yaml")
|
relocate("org.yaml", "com.dfsek.terra.lib.yaml")
|
||||||
}
|
}
|
||||||
|
|
||||||
val minecraft = "1.18-pre1"
|
val minecraft = "1.18-pre5"
|
||||||
val yarn = "4:v2"
|
val yarn = "4"
|
||||||
val fabricLoader = "0.12.5"
|
val fabricLoader = "0.12.5"
|
||||||
|
|
||||||
|
|
||||||
@@ -25,16 +25,8 @@ dependencies {
|
|||||||
"shadedApi"(project(":common:implementation"))
|
"shadedApi"(project(":common:implementation"))
|
||||||
|
|
||||||
"minecraft"("com.mojang:minecraft:$minecraft")
|
"minecraft"("com.mojang:minecraft:$minecraft")
|
||||||
"mappings"("net.fabricmc:yarn:$minecraft+build.$yarn")
|
"mappings"("net.fabricmc:yarn:$minecraft+build.$yarn:v2")
|
||||||
"modImplementation"("net.fabricmc:fabric-loader:$fabricLoader")
|
"modImplementation"("net.fabricmc:fabric-loader:$fabricLoader")
|
||||||
|
|
||||||
"modCompileOnly"("com.sk89q.worldedit:worldedit-fabric-mc1.16:7.2.0-SNAPSHOT") {
|
|
||||||
exclude(group = "com.google.guava", module = "guava")
|
|
||||||
exclude(group = "com.google.code.gson", module = "gson")
|
|
||||||
exclude(group = "it.unimi.dsi", module = "fastutil")
|
|
||||||
exclude(group = "org.apache.logging.log4j", module = "log4j-api")
|
|
||||||
exclude(group = "org.apache.logging.log4j", module = "log4j-core")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<JavaCompile>().configureEach {
|
tasks.withType<JavaCompile>().configureEach {
|
||||||
@@ -42,8 +34,10 @@ tasks.withType<JavaCompile>().configureEach {
|
|||||||
}
|
}
|
||||||
|
|
||||||
loom {
|
loom {
|
||||||
accessWidener = file("src/main/resources/terra.accesswidener")
|
accessWidenerPath.set(file("src/main/resources/terra.accesswidener"))
|
||||||
refmapName = "terra-refmap.json"
|
mixin {
|
||||||
|
defaultRefmapName.set("terra-refmap.json")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val remapped = tasks.register<RemapJarTask>("remapShadedJar") {
|
val remapped = tasks.register<RemapJarTask>("remapShadedJar") {
|
||||||
@@ -57,8 +51,6 @@ val remapped = tasks.register<RemapJarTask>("remapShadedJar") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
tasks.register<TaskModrinthUpload>("publishModrinthFabric") {
|
tasks.register<TaskModrinthUpload>("publishModrinthFabric") {
|
||||||
dependsOn("remapShadedJar")
|
dependsOn("remapShadedJar")
|
||||||
group = "fabric"
|
group = "fabric"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"required": true,
|
"required": true,
|
||||||
"minVersion": "0.8",
|
"minVersion": "0.8",
|
||||||
"package": "com.dfsek.terra.fabric.mixin",
|
"package": "com.dfsek.terra.fabric.mixin",
|
||||||
"compatibilityLevel": "JAVA_17",
|
"compatibilityLevel": "JAVA_16",
|
||||||
"mixins": [
|
"mixins": [
|
||||||
"CommandManagerMixin",
|
"CommandManagerMixin",
|
||||||
"ServerWorldMixin",
|
"ServerWorldMixin",
|
||||||
|
|||||||
Reference in New Issue
Block a user