Versioning against a platform that moves under you
One April afternoon our Minecraft plugin started declaring that it was built for game version 1.26.1.2. There has never been a Minecraft 1.26.1.2.
That string was fixed two hours later. The change that came in with it, a silent jump from Java 21 to Java 25, took 116 days to notice.
Some context. We publish a plugin that adds enchantments to Paper, the Minecraft server software, on Modrinth, the plugin registry. We also run a small Minecraft server, with its own website, that uses it. Neither one controls the platform. Minecraft decides the game version, Paper decides what its API looks like and which Java it's compiled for, and both change on their own schedule.
A Paper plugin has to say which API it was built for. That's one line in
its paper-plugin.yml, and the rule that makes it matter is simple:
Paper refuses a plugin that declares a newer API than the server.
Older ones load fine.
A plausible string
In 2026 Minecraft stopped numbering itself 1.21.x and moved to a year-based 26.x. When we moved the plugin across, the change looked like this:
- <version>1.21.11-R0.1-SNAPSHOT</version>
+ <version>26.1.2.build.13-alpha</version>
-api-version: '1.21.8'
+api-version: '1.26.1.2'
The dependency was right. The declared API version wasn't a version of
anything. Paper's artifact said 26.1.2, and the Minecraft releases were
26.1, 26.1.1 and 26.1.2. 1.26.1.2 is the old 1. habit glued onto the
new number: plausible at a glance, and wrong. Two hours later a one-line
change set it to '26.1'. Nothing records how the mistake was caught.
What is recorded is how far the habit had already spread. The upgrade
itself was titled "Update to Paper 1.26.1.2", and the release notes said
"Minecraft 1.26.1.2" and "Paper 1.26.1.2". The fix touched one line and
left them alone. The next release notes, in August, described the change
as 1.26.1.2 → 26.2, though the real previous value was 26.1. And
in September a docs refresh wrote that the plugin uses Paper's
enchantment registry "(1.26.2+)". Same mistake, four and a half months
after the fix.
None of this could fail a build. To Maven, paper-plugin.yml is a
resource file to copy into the jar. Nothing checks what the field says.
The requirement no field showed
That same upgrade carried a second change that no line of it showed.
The 1.21.11 paper-api jar is Java 21 bytecode: class file major version
65, all 2,268 classes. The 26.1.2 jar is Java 25, major 69, all 2,279.
Our pom.xml said Java 21, and so did both CI workflows. A Java 21
build can't read Java 25 class files.
So from that afternoon on, the build was broken. Nobody noticed, because nobody touched the plugin for the next four months. CI was red the whole time, and nothing was waiting on it: no merge was gated on a green build.
In August the next upgrade, to Paper 26.2, finally ran into the wall when its release build failed. The fix was in six minutes later. The compiler needed JDK 25 to read the new jar. And maven-shade-plugin 3.5.1, which bundles its own copy of ASM, couldn't process version-69 class files either, even when shading our own compiled output. Version 3.6.2 can. So the pom and both workflows moved to Java 25, and the shade plugin to 3.6.2.
At the time we blamed Paper 26.2, because that was the upgrade in front of us. The requirement had arrived 116 days earlier. And neither the JDK nor the shade plugin was ever really a choice. The shade plugin has been bumped twice in the plugin's life, both times because Java moved: 3.2.4 to 3.5.1 in October 2025, to fix "invalid target release: 21", and 3.5.1 to 3.6.2 in August 2026, to read class files from Java 25.
That afternoon we wrote it down, under a heading that says "Java version is tied to the Paper API version, not chosen freely." We also wrote down what the failed release had taught us about releasing. Retry a broken release by deleting and recreating it, never by moving the tag. And always check that a jar is actually attached, because "a failed build still leaves the release published, just asset-less."
The changes as a table
| date | field | change |
|---|---|---|
| 2025-10-04 | paper-api, api-version | 1.21.5 to 1.21.9, then back to 1.21.8 thirteen minutes later |
| 2025-10-04 | shade plugin | 3.2.4 to 3.5.1, for Java 21 |
| 2025-11-16 | paper-api | 1.21.10 |
| 2026-02-15 | paper-api | 1.21.11 |
| 2026-04-19 | paper-api, api-version | 26.1.2.build.13-alpha, and api-version 1.26.1.2 |
| 2026-04-19 | api-version | 26.1, two hours later |
| 2026-08-13 | paper-api, api-version | 26.2.build.112-stable, api-version 26.2 |
| 2026-08-13 | Java, shade plugin | Java 21 to 25 in the pom and both workflows, shade 3.5.1 to 3.6.2, six minutes later |
| 2026-09-02 | Modrinth game-versions | 26.2, typed by hand |
| 2026-09-06 | server's Paper | 1.21.11 build 132, with the plugin at 1.2.0 |
| 2026-09-10 | server's Paper | 26.2 build 123, with the plugin at 1.6.0 |
| 2026-10-03 | server's Paper | 26.3 build 147 |
Six places to type one version
Read the lanes above the dotted line as a list of places a person has to
remember. Since September, when we automated publishing to Modrinth, one
move of the platform can mean editing six values by hand: the paper-api
version, api-version, <java.version>, the JDK in each of two CI
workflows, and the game-versions list that tells Modrinth which
Minecraft releases the plugin supports. That last one carries a comment
from the day it was written: "Nothing fails loudly when this drifts".
Most of those six can't be derived from the others, and that's the
platform's doing, not ours. The release tool can't read
paper-plugin.yml, and the Java requirement isn't printed anywhere; it's
only compiled into the jar. But every one of them is a claim typed by a
person about something that changes without asking. The April mistake
was one of those claims typed wrong. The 116 days were one of them not
typed at all.
Recording instead of asserting
The server's website hit the same problem from the other side. Its guide to the game's blocks and items is built from imported reference data, and in September it was still pinned to Minecraft 1.19.4 while the game was on 26.x. So we changed what the version was: no longer a constant someone typed, but a fact the importer measures.
The importer now writes down what it actually imported, a version and
its protocol number, in a meta table. The server-info endpoint reports
that beside the live game server's protocol, and the page warns when
they differ. It compares protocol numbers, not version strings, because
the string is free text: Hypixel, for one, answers "Requires MC 1.8 /
1.21". And the comparison has three answers, not two. When it can't
tell, it says nothing, because saying "no" there would be a claim we
hadn't earned.
That's the better answer to the same problem. A version that was measured can be compared with another measurement, and a mismatch shows up on the page instead of in a red build nobody reads.
It doesn't cover everything. The game server's own Paper version is still pinned by hand in its start script, on purpose: upgrading is deliberate, and touches three places. And the hand-kept version table in the server's docs went stale for 23 days in September, still naming plugin 1.2.0 after the server had moved to 1.6.0. Typed versions drift wherever they're typed, even in the project that stopped typing the other ones.
Two projects, one third party
In September the server's site started listing the plugins we publish, straight from Modrinth's public API: name, downloads, latest version, and the Minecraft versions each release supports. Which projects to ask about is still a hand-kept list, on purpose. It's a claim we make, not a discovery.
That list has already broken once. One of our other plugins was renamed on Modrinth, and keeping up took a one-line edit. By design, nothing would have errored if we'd missed it. A test pins exactly that behaviour, a missing project quietly dropping off the list, under the docstring "Short rather than wrong".
Two hours after the site started reading from Modrinth, the plugin
started writing to it automatically, with game-versions typed as
26.2. Eight days later the site's new plugins page began showing the
game versions of each plugin's latest release, under "Runs on". So a
string typed by hand in one project's release workflow is shown on the
other project's website, through a third party's API. Search either
project's full history for its side of that link and you find nothing.
In early October the server moved to Paper 26.3. The plugin loads on it fine, and its release workflow still says 26.2. Releases go to Modrinth automatically, so the plugins page now tells visitors the plugin runs on a version older than the one it's running on. Nothing fails. It drifts.
Is that elegant, or a dependency nobody wrote down? Both. The facts flow from the place they're made to the place they're shown, which is the right direction. But two projects now depend on each other through a field that neither one documents, and the only record of it, so far, is this note.
What helps
The platform will move. That part isn't up to you. What is up to you:
- Count the places you type the version, and treat each one as a claim that will go stale. Six is a lot of places to remember.
- Measure where you can, and compare. A version read from what was actually built or imported can disagree out loud with the live system. A version typed into a config file can only be wrong quietly.
- Make the build fail when it's broken, and make something wait on it. Four months of red CI is what a check with nothing gated on it is worth.
- Write down a link between projects on both sides, even when a third party sits in the middle. Especially then, since the third party won't tell either project when the other one changes.