1
mirror of https://github.com/Shiewk/Widgets.git synced 2026-04-28 11:34:17 +02:00

Support Minecraft 26.1

This commit is contained in:
Shy
2026-04-01 12:17:13 +02:00
parent 169355db9a
commit c107c5ba44
59 changed files with 1130 additions and 1506 deletions
+7 -16
View File
@@ -1,6 +1,5 @@
plugins {
id 'fabric-loom' version '1.14-SNAPSHOT'
id 'maven-publish'
id 'net.fabricmc.fabric-loom' version "${loom_version}"
}
version = "${project.mod_version}-${project.minecraft_version}"
@@ -11,7 +10,7 @@ base {
}
loom {
accessWidenerPath = file("src/main/resources/widgets.accesswidener")
accessWidenerPath = file("src/main/resources/widgets.classtweaker")
}
repositories {
@@ -34,21 +33,17 @@ repositories {
}
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modImplementation "maven.modrinth:modmenu:${project.modmenu_version}"
implementation "net.fabricmc:fabric-loader:${project.loader_version}"
implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
implementation "maven.modrinth:modmenu:${project.modmenu_version}"
}
processResources {
inputs.property "version", project.version
inputs.property "minecraft_version", project.minecraft_version
inputs.property "loader_version", project.loader_version
filteringCharset "UTF-8"
filteringCharset = "UTF-8"
filesMatching("fabric.mod.json") {
expand "version": project.version,
@@ -57,7 +52,7 @@ processResources {
}
}
def targetJavaVersion = 21
def targetJavaVersion = 25
tasks.withType(JavaCompile).configureEach {
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
@@ -74,10 +69,6 @@ java {
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
}
jar {