mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-12-03 03:42:21 +00:00
feat: update mod platforms to Minecraft 26.3
This commit is contained in:
1 parent
4b3dd2b692
commit
b8d8807ae8
45 files changed
+250
-402
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import java.util.*
|
||||
|
||||
plugins {
|
||||
id("dev.architectury.loom") version Versions.Mod.architecturyLoom
|
||||
id("dev.architectury.loom-no-remap") version Versions.Mod.architecturyLoom
|
||||
id("architectury-plugin") version Versions.Mod.architecturyPlugin
|
||||
}
|
||||
|
||||
@@ -13,45 +13,49 @@ architectury {
|
||||
dependencies {
|
||||
shadedApi(project(":common:implementation:base"))
|
||||
|
||||
implementation(project(path = ":platforms:mixin-common", configuration = "namedElements")) { isTransitive = false }
|
||||
"developmentFabric"(project(path = ":platforms:mixin-common", configuration = "namedElements")) { isTransitive = false }
|
||||
implementation(project(":platforms:mixin-common")) { isTransitive = false }
|
||||
"developmentFabric"(project(":platforms:mixin-common")) { isTransitive = false }
|
||||
shaded(project(path = ":platforms:mixin-common", configuration = "transformProductionFabric")) { isTransitive = false }
|
||||
implementation(project(path = ":platforms:mixin-lifecycle", configuration = "namedElements")) { isTransitive = false }
|
||||
"developmentFabric"(project(path = ":platforms:mixin-lifecycle", configuration = "namedElements")) { isTransitive = false }
|
||||
implementation(project(":platforms:mixin-lifecycle")) { isTransitive = false }
|
||||
"developmentFabric"(project(":platforms:mixin-lifecycle")) { isTransitive = false }
|
||||
shaded(project(path = ":platforms:mixin-lifecycle", configuration = "transformProductionFabric")) { isTransitive = false }
|
||||
|
||||
|
||||
minecraft("com.mojang:minecraft:${Versions.Mod.minecraft}")
|
||||
mappings(loom.officialMojangMappings())
|
||||
|
||||
modImplementation("net.fabricmc:fabric-loader:${Versions.Mod.fabricLoader}")
|
||||
implementation("net.fabricmc:fabric-loader:${Versions.Mod.fabricLoader}")
|
||||
|
||||
modImplementation("org.incendo", "cloud-fabric", Versions.Fabric.cloud) {
|
||||
implementation("org.incendo", "cloud-fabric", Versions.Fabric.cloud) {
|
||||
exclude("me.lucko", "fabric-permissions-api")
|
||||
}
|
||||
include("org.incendo", "cloud-fabric", Versions.Fabric.cloud)
|
||||
|
||||
modRuntimeOnly("net.fabricmc.fabric-api", "fabric-api", Versions.Fabric.fabricAPI)
|
||||
runtimeOnly("net.fabricmc.fabric-api", "fabric-api", Versions.Fabric.fabricAPI)
|
||||
}
|
||||
|
||||
loom {
|
||||
accessWidenerPath.set(project(":platforms:mixin-common").file("src/main/resources/terra.accesswidener"))
|
||||
|
||||
mixin {
|
||||
defaultRefmapName.set("terra.fabric.refmap.json")
|
||||
}
|
||||
|
||||
// Minecraft 26.x is unobfuscated: no remapJar, the shaded jar is the release jar.
|
||||
nestJars(tasks.shadowJar, configurations.include)
|
||||
injectAccessWidener(tasks.shadowJar)
|
||||
}
|
||||
|
||||
|
||||
addonDir(project.file("./run/config/Terra/addons"), tasks.named("configureLaunch").get())
|
||||
|
||||
tasks {
|
||||
remapJar {
|
||||
dependsOn("installAddons")
|
||||
jar {
|
||||
archiveClassifier.set("dev")
|
||||
}
|
||||
|
||||
injectAccessWidener.set(true)
|
||||
inputFile.set(shadowJar.get().archiveFile)
|
||||
shadowJar {
|
||||
archiveClassifier.set("")
|
||||
archiveFileName.set("${rootProject.name.replaceFirstChar { if (it.isLowerCase()) it.titlecase(Locale.getDefault()) else it.toString() }}-fabric-${project.version}.jar")
|
||||
manifest.attributes("Fabric-Mapping-Namespace" to "official")
|
||||
}
|
||||
|
||||
withType<JavaCompile>().configureEach {
|
||||
options.release = 25
|
||||
}
|
||||
}
|
||||
@@ -33,9 +33,9 @@
|
||||
"terra.common.mixins.json"
|
||||
],
|
||||
"depends": {
|
||||
"fabricloader": ">=0.16.10",
|
||||
"java": ">=21",
|
||||
"minecraft": "1.21.10",
|
||||
"fabric": "*"
|
||||
"fabricloader": ">=0.20.1",
|
||||
"java": ">=25",
|
||||
"minecraft": "~26.3",
|
||||
"fabric-api": "*"
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
"required": true,
|
||||
"minVersion": "0.8",
|
||||
"package": "com.dfsek.terra.fabric.mixin",
|
||||
"compatibilityLevel": "JAVA_21",
|
||||
"compatibilityLevel": "JAVA_25",
|
||||
"mixins": [
|
||||
],
|
||||
"client": [
|
||||
|
||||
Reference in new issue
Block a user