This commit is contained in:
Xujiayao 2026-03-18 21:50:10 +08:00
parent cf82008384
commit 85af5d89d7
4 changed files with 11 additions and 7 deletions

View file

@ -7,11 +7,11 @@ jobs:
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v6 uses: actions/checkout@v6
- name: Setup JDK 21 - name: Setup JDK 25
uses: actions/setup-java@v5 uses: actions/setup-java@v5
with: with:
distribution: temurin distribution: temurin
java-version: 21 java-version: 25
- name: Validate Gradle Wrapper - name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v5 uses: gradle/actions/wrapper-validation@v5
- name: Setup Gradle - name: Setup Gradle

View file

@ -14,15 +14,15 @@ subprojects {
version = mod_version version = mod_version
java.toolchain.languageVersion = JavaLanguageVersion.of(21) java.toolchain.languageVersion = JavaLanguageVersion.of(25)
java { java {
sourceCompatibility = JavaVersion.VERSION_21 sourceCompatibility = JavaVersion.VERSION_25
targetCompatibility = JavaVersion.VERSION_21 targetCompatibility = JavaVersion.VERSION_25
} }
tasks.withType(JavaCompile).configureEach { tasks.withType(JavaCompile).configureEach {
options.release = 21 options.release = 25
options.encoding = "UTF-8" options.encoding = "UTF-8"
} }

View file

@ -1,7 +1,7 @@
{ {
"required": true, "required": true,
"package": "com.xujiayao.discord_mc_chat.minecraft.mixins", "package": "com.xujiayao.discord_mc_chat.minecraft.mixins",
"compatibilityLevel": "JAVA_21", "compatibilityLevel": "JAVA_25",
"mixins": [ "mixins": [
"MixinCommands", "MixinCommands",
"MixinMinecraftServer", "MixinMinecraftServer",

View file

@ -5,5 +5,9 @@ pluginManagement {
} }
} }
plugins {
id "org.gradle.toolchains.foojay-resolver-convention" version "1.0.0"
}
include(":core") include(":core")
include(":minecraft") include(":minecraft")