bump version to 26.2

This commit is contained in:
iceBear67 committed 2026-07-17 18:11:09 +08:00
1 parent c1836635fb
commit 592c79ed90
7 files changed
+32 -20

No files matched your search

+19 -9
View File
@@ -1,5 +1,5 @@
plugins { plugins {
id 'fabric-loom' version "${loom_version}" id 'net.fabricmc.fabric-loom' version "${loom_version}"
id 'maven-publish' id 'maven-publish'
id("io.freefair.lombok") version "9.0.0-rc2" id("io.freefair.lombok") version "9.0.0-rc2"
id("com.gradleup.shadow") version '9.1.0' id("com.gradleup.shadow") version '9.1.0'
@@ -15,6 +15,11 @@ allprojects {
archivesName = project.archives_base_name archivesName = project.archives_base_name
} }
// Lombok 1.18.40+ is required for JDK 25 (class file major version 69).
lombok {
version = "1.18.46"
}
repositories { repositories {
// Add repositories to retrieve artifacts from in here. // Add repositories to retrieve artifacts from in here.
// You should only use this when depending on other mods because // You should only use this when depending on other mods because
@@ -46,23 +51,23 @@ loom {
// If you remove this line, sources will not be generated. // If you remove this line, sources will not be generated.
withSourcesJar() withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_21 sourceCompatibility = JavaVersion.VERSION_25
targetCompatibility = JavaVersion.VERSION_21 targetCompatibility = JavaVersion.VERSION_25
} }
tasks.withType(JavaCompile).configureEach { tasks.withType(JavaCompile).configureEach {
it.options.release = 21 it.options.release = 25
} }
} }
dependencies { dependencies {
// To change the versions see the gradle.properties file // To change the versions see the gradle.properties file
// Minecraft 26.1+ is unobfuscated, so no mappings are required.
minecraft "com.mojang:minecraft:${project.minecraft_version}" minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.officialMojangMappings() implementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
// Fabric API. This is technically optional, but you probably want it anyway. // Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
// https://mvnrepository.com/artifact/software.amazon.awssdk/s3 // https://mvnrepository.com/artifact/software.amazon.awssdk/s3
shadow project(":bundler") shadow project(":bundler")
shadow 'software.amazon.awssdk:s3:2.34.0' shadow 'software.amazon.awssdk:s3:2.34.0'
@@ -89,16 +94,21 @@ processResources {
} }
} }
jar { jar {
// Minecraft 26.1+ is unobfuscated, so there is no remapJar step; the shaded
// jar is the distributable mod. Keep the thin jar under a separate classifier.
archiveClassifier = 'dev'
inputs.property "archivesName", project.base.archivesName inputs.property "archivesName", project.base.archivesName
from("LICENSE") { from("LICENSE") {
rename { "${it}_${inputs.properties.archivesName}" } rename { "${it}_${inputs.properties.archivesName}" }
} }
} }
remapJar { shadowJar {
input = tasks.shadowJar.archiveFile archiveClassifier = ''
} }
assemble.dependsOn shadowJar
// configure the maven publication // configure the maven publication
publishing { publishing {
publications { publications {
BIN
View File
Binary file not shown.
+7 -5
View File
@@ -2,12 +2,14 @@
org.gradle.jvmargs=-Xmx4G org.gradle.jvmargs=-Xmx4G
org.gradle.parallel=true org.gradle.parallel=true
# IntelliJ IDEA is not yet fully compatible with configuration cache, see: https://github.com/FabricMC/fabric-loom/issues/1349
org.gradle.configuration-cache=false
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/develop # check these on https://fabricmc.net/develop
minecraft_version=1.21.8 minecraft_version=26.2
yarn_mappings=1.21.8+build.1 loader_version=0.19.3
loader_version=0.16.14 loom_version=1.17-SNAPSHOT
loom_version=1.11-SNAPSHOT
# Mod Properties # Mod Properties
mod_version=1.0.0 mod_version=1.0.0
@@ -15,4 +17,4 @@ maven_group=io.ib67.sfcraft
archives_base_name=justbackup archives_base_name=justbackup
# Dependencies # Dependencies
fabric_version=0.129.0+1.21.8 fabric_version=0.154.2+26.2
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000 networkTimeout=10000
validateDistributionUrl=true validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
@@ -58,7 +58,7 @@ public class BackupCommands {
CommandDispatcher<CommandSourceStack> dispatcher, CommandDispatcher<CommandSourceStack> dispatcher,
CommandBuildContext registry, Commands.CommandSelection env) { CommandBuildContext registry, Commands.CommandSelection env) {
dispatcher.register(literal("backup") dispatcher.register(literal("backup")
.requires(it -> it.hasPermission(4)) .requires(Commands.hasPermission(Commands.LEVEL_OWNERS))
.then(literal("help").executes(this::cmdHelp)) .then(literal("help").executes(this::cmdHelp))
.then(literal("list").executes(this::cmdList)) .then(literal("list").executes(this::cmdList))
.then(literal("cancelrestore").executes(this::cmdCancelRestore)) .then(literal("cancelrestore").executes(this::cmdCancelRestore))
+3 -3
View File
@@ -19,9 +19,9 @@
"justbackup.mixins.json" "justbackup.mixins.json"
], ],
"depends": { "depends": {
"fabricloader": ">=0.16.14", "fabricloader": ">=0.19.3",
"minecraft": "~1.21.8", "minecraft": "~26.2",
"java": ">=21", "java": ">=25",
"fabric-api": "*" "fabric-api": "*"
} }
} }
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"required": true, "required": true,
"package": "io.ib67.sfcraft.mixin", "package": "io.ib67.sfcraft.mixin",
"compatibilityLevel": "JAVA_21", "compatibilityLevel": "JAVA_25",
"mixins": [ "mixins": [
"MixinMinecraftServer", "MixinMinecraftServer",
"MixinRegionBasedStorage" "MixinRegionBasedStorage"