Skip to content

Building

the-real-ltcg edited this page Jul 1, 2026 · 1 revision

Building

Requirements

  • JDK 25 (set JAVA_HOME)

Build

./gradlew build

Output: build/libs/nes-viabridge-<version>.jar — self-contained, with the ViaVersion stack and its mapping data fat-jarred in.

To pull the latest ViaBackwards snapshot (e.g. to test whether 26.2 down-conversion has landed):

./gradlew build --refresh-dependencies

Notes

  • Uses the non-remapping Fabric Loom (26.x Minecraft is unobfuscated / official mappings), which makes fat-jarring the Via libraries straightforward.
  • The Mixin targets NES by string (@Mixin(targets = "...SpectatorServerNetworkHandler")), so this mod does not need NES on its compile classpath — only at runtime.
  • Via is pulled from https://repo.viaversion.com and bundled via a bundle configuration in build.gradle.

License

GPL-3.0 (required because it bundles the GPL-3.0 Via stack). If you redistribute a build, comply with the GPL-3.0 (keep the license, make source available).

Clone this wiki locally