Don't rename hk2 metadata file.

This commit is contained in:
Jeremy Wood 2023-03-09 09:05:03 -05:00
parent 7fe50d2171
commit 1ea88615c7
No known key found for this signature in database
GPG Key ID: C5BAD04C77B91B4B
2 changed files with 3 additions and 8 deletions

View File

@ -180,7 +180,6 @@ task prepareSource(type: Sync) {
compileJava {
source = prepareSource.outputs
options.compilerArgs << '-Aorg.glassfish.hk2.metadata.location=META-INF/hk2-locator/multiverse-core'
}
compileKotlin {

View File

@ -117,14 +117,10 @@ public final class PluginInjection {
) {
return Try.of(() -> serviceLocator.getService(DynamicConfigurationService.class))
.mapTry(dynamicConfigurationService -> {
var descriptors = dynamicConfigurationService
dynamicConfigurationService
.getPopulator()
.populate(new ClasspathDescriptorFileFinder(
plugin.getClass().getClassLoader(),
plugin.getName()
));
throw new IllegalStateException(descriptors.toString());
//return serviceLocator;
.populate(new ClasspathDescriptorFileFinder(plugin.getClass().getClassLoader()));
return serviceLocator;
});
}
}