Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sponge_plugins.json for Sponge #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WiIIiam278
Copy link

Adds sponge_plugins.json for Sponge (#23). Note this is included in the /META-INF/ directory in plugin jarfile and, in most cases, generated by the sponge gradle plugin or annotations. This file has been tested and passes with Sponge API v8.1.0. v7 and lower accept a different format entirely (mcmod.toml iirc)

Sponge is quite strict with parsing these files, so it's not possible to add custom mc-publish metadata fields. Even if it was, it wouldn't really be helpful due to the way these files are generated for the vast majority of sponge users.

  • There is no system to define custom metadata
  • Dependencies:
    • There is no way of defining custom dependency metadata
    • Embedded/Included, Conflicting, Breaking and Incompatible dependencies cannot be defined (only required/optional)
  • Only sponge is accepted as the supported loader.
  • Sponge plugins can bundle multiple plugins in one jarfile. Parameters set in the global field apply to each plugin in the plugins field and plugins can provide their own overriding parameters. The id, name, description and entrypoint parameters cannot be set in the global field and must be set for each plugin in plugins. At least one plugin is required in the plugins field for it to be valid. Thus, you can grab the name and ID from the first plugin in the plugins array.

(this PR supercedes #34)

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