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 {
id 'fabric-loom' version "${loom_version}"
id 'net.fabricmc.fabric-loom' version "${loom_version}"
id 'maven-publish'
id("io.freefair.lombok") version "9.0.0-rc2"
id("com.gradleup.shadow") version '9.1.0'
@@ -15,6 +15,11 @@ allprojects {
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 {
// Add repositories to retrieve artifacts from in here.
// 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.
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
sourceCompatibility = JavaVersion.VERSION_25
targetCompatibility = JavaVersion.VERSION_25
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 21
it.options.release = 25
}
}
dependencies {
// 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}"
mappings loom.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
implementation "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}"
implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
// https://mvnrepository.com/artifact/software.amazon.awssdk/s3
shadow project(":bundler")
shadow 'software.amazon.awssdk:s3:2.34.0'
@@ -89,16 +94,21 @@ processResources {
}
}
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
from("LICENSE") {
rename { "${it}_${inputs.properties.archivesName}" }
}
}
remapJar {
input = tasks.shadowJar.archiveFile
shadowJar {
archiveClassifier = ''
}
assemble.dependsOn shadowJar
// configure the maven publication
publishing {
publications {
BIN
View File
Binary file not shown.
+7 -5
View File
@@ -2,12 +2,14 @@
org.gradle.jvmargs=-Xmx4G
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
# check these on https://fabricmc.net/develop
minecraft_version=1.21.8
yarn_mappings=1.21.8+build.1
loader_version=0.16.14
loom_version=1.11-SNAPSHOT
minecraft_version=26.2
loader_version=0.19.3
loom_version=1.17-SNAPSHOT
# Mod Properties
mod_version=1.0.0
@@ -15,4 +17,4 @@ maven_group=io.ib67.sfcraft
archives_base_name=justbackup
# 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
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
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
@@ -58,7 +58,7 @@ public class BackupCommands {
CommandDispatcher<CommandSourceStack> dispatcher,
CommandBuildContext registry, Commands.CommandSelection env) {
dispatcher.register(literal("backup")
.requires(it -> it.hasPermission(4))
.requires(Commands.hasPermission(Commands.LEVEL_OWNERS))
.then(literal("help").executes(this::cmdHelp))
.then(literal("list").executes(this::cmdList))
.then(literal("cancelrestore").executes(this::cmdCancelRestore))
+3 -3
View File
@@ -19,9 +19,9 @@
"justbackup.mixins.json"
],
"depends": {
"fabricloader": ">=0.16.14",
"minecraft": "~1.21.8",
"java": ">=21",
"fabricloader": ">=0.19.3",
"minecraft": "~26.2",
"java": ">=25",
"fabric-api": "*"
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
{
"required": true,
"package": "io.ib67.sfcraft.mixin",
"compatibilityLevel": "JAVA_21",
"compatibilityLevel": "JAVA_25",
"mixins": [
"MixinMinecraftServer",
"MixinRegionBasedStorage"