This is a breaking release of plugin-spi to support SpongeVanilla 12 and its ModLauncher 10 environment. This come with a few QOL improvements too.
- Require Java 21 or more.
- Update plugin-meta to 0.8.2.
JVMPluginResourceis now an interface and is implemented by the platform.ClasspathPluginResourceLocatorServiceis now based on the system property rather than the system classloader and will load only jars, no directories.- Added
EnvironmentPluginResourceLocatorServiceto load plugins from an environment variable. - Remove most generics in services and candidates. Most of the time they were useless and causing unsafe casts resulting in some services receiving wrongly typed arguments.
Blackboardnow has a proper setter.JVMPluginContainerhas been replaced byStandardPluginContainer. A more general alternative.- Same goes for
JVMPluginLanguageServiceandStandardPluginLanguageService. ResourceQueryablenow takesStringparameters instead ofURLs making it easier to use.