Skip to content

Forge 26.1/26.2 build support#1

Closed
not-coded wants to merge 2 commits into
mainfrom
worktree-forge-26x-build
Closed

Forge 26.1/26.2 build support#1
not-coded wants to merge 2 commits into
mainfrom
worktree-forge-26x-build

Conversation

@not-coded

Copy link
Copy Markdown
Owner

Makes the Forge 26.1 and 26.2 Stonecutter targets build. Includes a snapshot commit of the in-progress 26.x migration from the working tree, plus the actual fixes in the second commit.

Fixes (second commit)

  • build.forge.gradle.kts script compilation — removed corrupted IDE auto-imports (com.sun.imageio…JPEG.vendor, jdk.jfr.internal.JVM.exclude, jsoup Entities) and restored base.archivesName; these broke every forge target.
  • Unobfuscated 26.x handlingmappings()/remapJar/remapSourcesJar now guarded behind an obfuscated flag (same pattern as the fabric script); 26.x uses loom-no-remap where remap tasks don't exist, so jar/sourcesJar are used for buildAndCollect and publishMods.
  • cloth-config on Forge 26.x — shedaniel stopped publishing Forge builds after 17.0.144 (MC 1.21.3). 26.x now depends on the community port Cloth Config API Forge (maven.modrinth:cloth-config-forge, verified same cloth_config modid) via Modrinth maven with exclusiveContent filtering. 1.x targets keep shedaniel's maven.
  • Missing [forge."26.2"] properties — added: Forge loader 65.0.5 (latest for MC 26.2), cloth 26.2.155.
  • ModList.get() removed in Forge 62+ — the API is now fully static; added a >=26.1 stonecutter guard using ModList.isLoaded(modId).

Verification

  • :26.1-forge:build and :26.2-forge:build pass; jars contain expanded mods.toml with correct version ranges.
  • Full chiseledBuild across all 27 targets passes (what CI runs) — no regressions; forge jars collected for 1.16.x through 26.2.

Note: runtime dependency for players on Forge 26.x is the community cloth-config port, not shedaniel's — worth a mention in the Modrinth/CurseForge description.

Working-tree state of the Stonecutter 0.9.6 rework adding 26.x
targets: per-loader buildscripts, TOML version properties,
loom-no-remap for unobfuscated 26.x, reusable CI workflows.
- drop corrupted IDE auto-imports and Entities.EscapeMode reference
  that broke buildscript compilation for every forge target
- guard mappings/remapJar behind obfuscated flag; 26.x uses
  loom-no-remap where remap tasks do not exist (matches fabric script)
- shedaniel ships no Forge cloth-config past 17.0.144 (MC 1.21.3);
  26.x pulls the community port maven.modrinth:cloth-config-forge
  (same cloth_config modid) via Modrinth maven
- add missing [forge."26.2"] properties (Forge 65.0.5, cloth 26.2.155)
- ModList.get() removed in Forge 62+; API is static, add >=26.1 guard
@not-coded

Copy link
Copy Markdown
Owner Author

Superseded — changes applied directly to main checkout.

@not-coded not-coded closed this Jul 18, 2026
@not-coded
not-coded deleted the worktree-forge-26x-build branch July 18, 2026 23:15
Repository owner locked and limited conversation to collaborators Jul 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant