Fix target version to Minecraft 26.2
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -9,10 +9,9 @@ trigger:
|
||||
|
||||
steps:
|
||||
- name: gradle-build
|
||||
image: gradle:8.10.2-jdk21
|
||||
image: gradle:jdk25
|
||||
environment:
|
||||
GRADLE_USER_HOME: /drone/src/.gradle
|
||||
commands:
|
||||
- gradle --no-daemon clean build
|
||||
- ls -la build/libs
|
||||
|
||||
|
||||
17
README.md
17
README.md
@@ -18,15 +18,18 @@
|
||||
- пример простого IRC-сервера на Node.js без внешних зависимостей;
|
||||
- `/.drone.yml` для сборки через Drone CI.
|
||||
|
||||
## Важное допущение по версии
|
||||
## Целевая версия
|
||||
|
||||
Я заложил сборку под связку:
|
||||
Сборка переведена на:
|
||||
|
||||
- Minecraft `1.21.6`
|
||||
- Fabric Loader `0.16.14`
|
||||
- Fabric API `0.126.2+1.21.6`
|
||||
- Minecraft `26.2`
|
||||
- Fabric Loader `0.19.3`
|
||||
- Fabric API `0.152.2+26.2`
|
||||
- Java `25`
|
||||
|
||||
Если под "Fabric 26.2" ты имел в виду другую точную версию, поправь [gradle.properties](/D:/Desktop/gdfg/gradle.properties) и [src/main/resources/fabric.mod.json](/D:/Desktop/gdfg/src/main/resources/fabric.mod.json).
|
||||
Дата релиза `Minecraft 26.2`: `2026-06-16`.
|
||||
|
||||
Для этой версии я использую official Mojang mappings через Loom, потому что стандартный Yarn endpoint для `26.2` на момент правки ещё не отдавал mappings.
|
||||
|
||||
## Команды в игре
|
||||
|
||||
@@ -120,7 +123,7 @@ node irc-server.js
|
||||
|
||||
## Сборка мода
|
||||
|
||||
Для локальной сборки нужен Gradle 8.10+ и Java 21.
|
||||
Для локальной сборки нужен Gradle 9+ и Java 25.
|
||||
|
||||
```bash
|
||||
gradle build
|
||||
|
||||
@@ -19,7 +19,7 @@ repositories {
|
||||
|
||||
dependencies {
|
||||
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
||||
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
|
||||
mappings loom.officialMojangMappings()
|
||||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||
}
|
||||
@@ -33,12 +33,12 @@ processResources {
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
it.options.release = 21
|
||||
it.options.release = 25
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_21
|
||||
targetCompatibility = JavaVersion.VERSION_21
|
||||
sourceCompatibility = JavaVersion.VERSION_25
|
||||
targetCompatibility = JavaVersion.VERSION_25
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
@@ -52,4 +52,3 @@ publishing {
|
||||
repositories {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,14 +1,11 @@
|
||||
org.gradle.jvmargs=-Xmx2G
|
||||
org.gradle.parallel=true
|
||||
|
||||
# Assumption: "Fabric 26.2" refers to Fabric API 0.126.2 for Minecraft 1.21.6.
|
||||
# If your target differs, update the four values below together.
|
||||
minecraft_version=1.21.6
|
||||
yarn_mappings=1.21.6+build.1
|
||||
loader_version=0.16.14
|
||||
fabric_version=0.126.2+1.21.6
|
||||
# Minecraft 26.2 released on 2026-06-16.
|
||||
minecraft_version=26.2
|
||||
loader_version=0.19.3
|
||||
fabric_version=0.152.2+26.2
|
||||
|
||||
mod_version=1.0.0
|
||||
maven_group=ru.nevetime
|
||||
archives_base_name=client-irc-chat
|
||||
|
||||
|
||||
@@ -16,10 +16,9 @@
|
||||
]
|
||||
},
|
||||
"depends": {
|
||||
"fabricloader": ">=0.16.14",
|
||||
"minecraft": "~1.21.6",
|
||||
"java": ">=21",
|
||||
"fabricloader": ">=0.19.3",
|
||||
"minecraft": "26.2",
|
||||
"java": ">=25",
|
||||
"fabric-api": "*"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user