Skip to content

Resolve runtime libraries from Maven Central only; default to Moss 1.2.3 - #51

Merged
ericlmao merged 1 commit into
mainfrom
fix/central-only-runtime
Nov 19, 2026
Merged

ericlmao merged 1 commit into
mainfrom
fix/central-only-runtime

Conversation

@ericlmao

Copy link
Copy Markdown
Member

Summary

  • PaperPluginLoader no longer adds repo.moonrise.gg (releases and snapshots) when the server starts. The engine's runtime libraries all come from Maven Central, through Paper's Central mirror (PAPER_DEFAULT_CENTRAL_REPOSITORY, the LibraryLoader.centralURL property, or Google's mirror). A plugin that needs another repository can add it in addLibraries(MavenLibraryResolver).
  • The default Moss is now 1.2.3, the first Moss release on Maven Central. 1.2.2 exists only on repo.moonrise.gg, so without this bump the loader could not find it once the Moonrise repositories are gone. 1.2.3 has the same classes as 1.2.2: the jar entries are identical, compared byte for byte.
  • The build compiles every module against Moss 1.2.3 from Central and no longer declares the Moonrise repositories. Publishing to Nexus is unchanged.
  • The version is now 1.10.2. The README installation section covers Central only, plus a new "Runtime libraries" note.

Release blocker

At server start, libraries come from Paper's Central mirror (maven-central.storage-download.googleapis.com), not from repo1.maven.org. On 2026-11-19 that mirror still answered 404 for gg/moonrise/moss/moss-paper/1.2.3/moss-paper-1.2.3.pom. Wait to release 1.10.2 until it answers 200. A server running 1.10.2 before then cannot resolve Moss and will fail to start:

curl -s -o /dev/null -w "%{http_code}\n" https://maven-central.storage-download.googleapis.com/maven2/gg/moonrise/moss/moss-paper/1.2.3/moss-paper-1.2.3.pom

Tests

  • ./gradlew build: 193 tests, 0 failures.
  • New PaperPluginLoaderTest cases:
    • resolvesOnlyFromTheMavenCentralMirror: the only repository is central.
    • defaultMossIsTheFirstReleaseOnMavenCentral: the default Moss is moss-paper:1.2.3.

… Moss 1.2.3

PaperPluginLoader no longer adds the repo.moonrise.gg releases and snapshots
repositories at server start: the engine's runtime libraries all come from
Maven Central through Paper's Central mirror, and a plugin that needs another
repository adds it in addLibraries. The default Moss moves to 1.2.3, the first
Moss release on Maven Central (1.2.2 exists only on repo.moonrise.gg).

The build resolves Moss 1.2.3 from Maven Central for every module and drops
the Moonrise repositories; publishing to Nexus is unchanged. Version 1.10.2.
@ericlmao
ericlmao merged commit a212b88 into main Nov 19, 2026
6 checks passed
@ericlmao
ericlmao deleted the fix/central-only-runtime branch November 19, 2026 17:55
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