Repository navigation
build(fabric): every Xena mod relocates its core, then R8, then Loom - #165
Merged
Merged
Conversation
4 of 20 tasks
zacharyk812
force-pushed
the
feat/fabric-relocation
branch
from
November 24, 2026 22:14
4616377 to
f0f5368
Compare
xena.fabric-mod in build-logic packages a plugin's Fabric jar: the bundle, the core relocated to co.xenastudios.<id>.core with Shadow, R8 on the relocated jar, Loom's remap below 26.1, and collect. xSample's and xTwin's Fabric jars use it, so the family test boots two relocated, shrunk mods; xTwin's jars get budget lines, and xSample's entry point moves to its own package.
zacharyk812
force-pushed
the
feat/fabric-relocation
branch
from
November 24, 2026 22:29
f0f5368 to
2f342ac
Compare
9 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every Xena Fabric mod now relocates its core, so two Xena mods never share core classes (#162).
Before this, xSample's Fabric jar carried the core under its original names. R8 renamed most classes, but it keeps the names its rules keep: the core API (
co.xenastudios.**.api.**) and the entry points. Those stayed shared between mods, because Fabric loads every mod in one class loader.xena.fabric-modin build-logic packages a plugin's Fabric jar in two lines:id("xena.fabric-mod")after Loom, thenxenaFabricMod { id = "xutilities" }. It appliesxena.r8andxena.fetched-libraries, and owns:bundleconfiguration and the jar contentsrelocateJar(Shadow's task type):co.xenastudios.core→co.xenastudios.<id>.coreremapJarinput below 26.1collectco.xenastudios.core.fabric.sandboxtoco.xenastudios.xsample.fabric, so relocation never moves whatfabric.mod.jsonnames.co.xenastudios.coreany more.Verified
./gradlew buildand./gradlew -p core/platform-fabric build collectpass.DECISIONS.md: "Fabric jars relocate their core".
Part of #123. Part of #162.