Skip to content

Build with Stonecutter, one node per Minecraft version - #31

Merged
WilyFoxM merged 1 commit into
mainfrom
build/stonecutter
Nov 16, 2026
Merged

WilyFoxM merged 1 commit into
mainfrom
build/stonecutter

Conversation

@WilyFoxM

Copy link
Copy Markdown
Owner

Problem and resulting behavior

The build targets one Minecraft version. Supporting 26.1.x and 26.3 next to 26.2 needs one jar per version, built from the same sources with small version seams.

The build now uses Stonecutter 0.9.8, as Lacmus does:

  • Nodes: each Minecraft version is a node, versions/<version>, built by build.fabric.gradle.kts. For now there is only 26.2; 26.3 and 26.1.x follow in their own PRs.
  • Version values: Fabric API, the declared Minecraft range and the optional local Sodium and Iris builds live per version in stonecutter.properties.toml.
  • fabric.mod.json: it is filled in from those values.
  • The jar's version names the Minecraft release it is for, 1.0.0+26.2, so the jars for different versions can be told apart. The file is now trajectory-projected-1.0.0+26.2.jar.
  • Unit tests stay in src/test and run in every node. The parity tests compare the core with the real vanilla classes, so each node checks against its own Minecraft version.
  • The development add-on and the release jar check move over unchanged.
  • Formatting: google-java-format through ./gradlew format and formatCheck, because Spotless can't run on a Stonecutter root. The CI job keeps its name, spotless.

Nothing changes in the mod itself.

Validation performed

  • GitHub checks (build, unit-tests, spotless): run on this PR.
  • Local checks actually run (JDK 25.0.4):
    • ./gradlew formatCheck build: 105 unit tests pass in node 26.2.
    • The new 26.2 jar compared with the released 1.0.0 jar:
      • every class and resource is byte for byte the same;
      • fabric.mod.json differs only in the version, 1.0.0 → 1.0.0+26.2;
      • the manifest adds four Stonecutter lines.
    • Local client run with the bow and fishing rod scenes on node 26.2: passes.
    • The jar check from a mods folder, alone and with the add-on: both pass, with the add-on jar in the folder.
    • -PwithIris brings in Sodium 0.9.2 and Iris 1.11.4 for local runs.
  • Prediction accuracy evidence: not applicable, the mod is unchanged.

Limits and compatibility

  • Loom 1.17 marks setting a run configuration's source set as deprecated, without a replacement; the build prints one warning for it.
  • Gradle files are no longer checked for formatting.

Prepares builds for several Minecraft versions from the same sources. For now the only node is 26.2; the jar's version names the Minecraft release it is for. Unit tests run in every node, so the parity tests check against that version's vanilla. Formatting moves to google-java-format, since Spotless can't run on a Stonecutter root.
@WilyFoxM
WilyFoxM merged commit c0dc5c2 into main Nov 16, 2026
6 checks passed
@WilyFoxM
WilyFoxM deleted the build/stonecutter branch November 16, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant