feat: add Minecraft 26.1.2 support for Spigot/Paper#20
feat: add Minecraft 26.1.2 support for Spigot/Paper#20github-actions[bot] wants to merge 11 commits into
Conversation
- Create bukkit-helper-26-1-2 module modeled on 1.21.11
- BukkitVersionHelperSpigot26_1_2, MapChunkCache26_1_2, NBT
- Reflective CraftBukkit lookup tries Paper unversioned, plus
candidate Spigot prefixes v1_21_R8 and v26_1_R1
- Module compiles with Java 25 (required by MC 26.1+)
- Update Helper.java to dispatch (MC: 26.*) to new helper
- Wire bukkit-helper-26-1-2 into settings.gradle and spigot/build.gradle
- ci(release): bump to JDK 25 and add BuildTools 26.1.2
- ci(auto-beta-release): on push to upgrade branch, compute next
26.1.2-beta.<N> tag, build with BuildTools+Gradle, then create
GitHub Release with the spigot JAR attached
- ASM 9.8 in root build.gradle so Shadow can read Java 25 bytecode. - bukkit-helper-26-1-2: - declare Java 25 toolchain explicitly - drop :remapped-mojang classifier (MC 26.1+ ships mojang-mapped) - use getLightDampening() (was getLightBlock() pre-26.1) - ci(release): install both JDK 21 (Spigot 1.21.x BuildTools, Gradle/ Shadow runtime) and JDK 25 (BuildTools for 26.1.2 + toolchain), pass both to Gradle via -Porg.gradle.java.installations.paths.
Gradle 8.12 doesn't officially support JDK 25 as the Gradle runtime. Install both JDK 21 and JDK 25, run Gradle on JDK 21, and expose JDK 25 to the new bukkit-helper-26-1-2 module via the toolchain auto- detection paths.
Surface which Spigot version (1.21.10, 1.21.11, or 26.1.2) is failing in BuildTools by running each in its own step with set -x and a maven repo listing for diagnostic.
Diagnostic for commit fee3d15BuildTools 26.1.2 outcome: success BuildTools 26.1.2 log (last 80 lines): Gradle log (last 200 lines): |
BuildTools no longer publishes the :remapped-mojang classifier; from 1.20.5 the regular Spigot server jar is already mojang-mapped. Pin the dependency without the classifier so Gradle resolves the artifact that BuildTools actually installs to ~/.m2. Resolves: bukkit-helper-121-11:compileJava 'Could not find spigot-1.21.11-R0.1-SNAPSHOT-remapped-mojang.jar'.
Diagnostic for commit 246b77eBuildTools 26.1.2 outcome: success BuildTools 26.1.2 log (last 80 lines): Gradle log (last 200 lines): |
…classifier Latest BuildTools dropped the 'remapped' Maven profile, so it no longer publishes the :remapped-mojang classifier that bukkit-helper-121-10/121-11 depend on. Use BuildTools webbukkit#189 (late-2025 era, the version that produced the working 1.21.11-beta.X releases) for those two versions, and keep the latest BuildTools for 26.1.2.
Diagnostic for commit f11a814BuildTools 26.1.2 outcome: skipped BuildTools 26.1.2 log (last 80 lines): Gradle log (last 200 lines): |
- Download multiple candidate older BuildTools.jar (196..186) until one downloads. - Each BuildTools step is now continue-on-error so one failure doesn't skip the rest. Each emits its own log file. - Diagnostic PR comment now lists outcomes/rcs for every step plus tails of each BuildTools log and the spigot maven repo.
Diagnostic for commit 1612b5eDownload BuildTools outcome: success (older build picked: 196) Maven repo (org.spigotmc): Download log (tail 30): BuildTools 1.21.10 log (tail 60): BuildTools 1.21.11 log (tail 60): BuildTools 26.1.2 log (tail 30): Gradle log (last 200 lines): |
BuildTools 196 (the latest with the 'remapped' Maven profile) refuses to build 1.21.11 because that version needs toolsVersion 197+. Use the latest BuildTools (197+) for 1.21.11, which produces a mojang-mapped regular jar (no :remapped-mojang classifier needed). Also drop the :remapped-mojang classifier in bukkit-helper-121-11/build.gradle.
Summary
Test plan