feat(paper): bundle plugin-grounds-platform v0.1.0#90
Merged
Conversation
Adds the in-pod platform-context plugin to every paper image build.
At runtime it reads the GROUNDS_* env vars that grounds-forge 1.9.0+
sets on Minecraft deploys and:
- replaces the default MOTD with `<project name>\n§8via Grounds`
- polls GET /v1/projects/<id>/whitelist every 30s with the workload-
scoped token and reconciles Paper's whitelist.json
Distributed as a public GitHub Release asset rather than GitHub
Packages Maven, so we curl it directly here (one extra step in the
build's RUN block) instead of going through download-plugins.sh.
That avoids needing a github_token secret for the artifact and keeps
the plugin reachable from forks of this repo. Once plugin-grounds-
platform starts publishing to GHCR Maven the curl step can collapse
into the PLUGINS list above.
The version is exposed as a build arg (GROUNDS_PLATFORM_PLUGIN_VERSION)
so a follow-up bump is a one-line change here.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Adds the in-pod platform-context plugin to every `paper` image build. At runtime the plugin reads the four `GROUNDS_*` env vars that grounds-forge 1.9.0+ sets on Minecraft deploys and:
If the env vars are missing (older forge, non-MC pod) the plugin logs one WARN and stays inert — user gameplay isn't affected.
Distribution choice
`plugin-grounds-platform` ships as a public GitHub Release asset, not GitHub Packages Maven, so this PR fetches it with a direct `curl` rather than through `download-plugins.sh`. That avoids requiring a `github_token` secret for the artifact and keeps the plugin reachable from forks of this repo. Once the plugin starts publishing to GHCR Maven the curl step can collapse into the `PLUGINS` list above.
The version is exposed as `GROUNDS_PLATFORM_PLUGIN_VERSION` so a future bump is a one-line change.
Test plan
🤖 Generated with Claude Code