mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-08 16:56:07 +00:00
reorganize Fabric buildscript
This commit is contained in:
@@ -3,18 +3,15 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
import com.modrinth.minotaur.TaskModrinthUpload
|
||||
import net.fabricmc.loom.task.RemapJarTask
|
||||
|
||||
val minecraft = "1.18-pre8"
|
||||
val yarn = "4"
|
||||
val fabricLoader = "0.12.5"
|
||||
|
||||
plugins {
|
||||
id("fabric-loom").version("0.10.58")
|
||||
id("com.modrinth.minotaur").version("1.1.0")
|
||||
}
|
||||
|
||||
addonDir(project.rootProject.file("./run/config/Terra/addons"), tasks.named("runClient").get())
|
||||
addonDir(project.rootProject.file("./run/config/Terra/addons"), tasks.named("runServer").get())
|
||||
|
||||
val minecraft = "1.18-pre8"
|
||||
val yarn = "4"
|
||||
val fabricLoader = "0.12.5"
|
||||
|
||||
// Do not shade because minecraft already includes it
|
||||
dependencies {
|
||||
shadedApi(project(":common:implementation:base"))
|
||||
@@ -34,10 +31,6 @@ dependencies {
|
||||
modImplementation("net.fabricmc:fabric-loader:$fabricLoader")
|
||||
}
|
||||
|
||||
tasks.withType<JavaCompile>().configureEach {
|
||||
options.release.set(17)
|
||||
}
|
||||
|
||||
loom {
|
||||
accessWidenerPath.set(file("src/main/resources/terra.accesswidener"))
|
||||
mixin {
|
||||
@@ -45,6 +38,14 @@ loom {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
addonDir(project.rootProject.file("./run/config/Terra/addons"), tasks.named("runClient").get())
|
||||
addonDir(project.rootProject.file("./run/config/Terra/addons"), tasks.named("runServer").get())
|
||||
|
||||
tasks.withType<JavaCompile>().configureEach {
|
||||
options.release.set(17)
|
||||
}
|
||||
|
||||
val remapped = tasks.register<RemapJarTask>("remapShadedJar") {
|
||||
group = "fabric"
|
||||
val shadowJar = tasks.getByName<ShadowJar>("shadowJar")
|
||||
|
||||
Reference in New Issue
Block a user