use of org.gradle.api.internal.plugins.PluginRegistry in project gradle by gradle.
the class ClassPathPluginResolution method execute.
@Override
public void execute(PluginResolveContext pluginResolveContext) {
ClassPath classPath = classPathFactory.create();
ClassLoaderScope loaderScope = parent.createChild("plugin-" + pluginId.getId());
loaderScope.local(classPath);
loaderScope.lock();
PluginRegistry pluginRegistry = new DefaultPluginRegistry(pluginInspector, loaderScope);
PluginImplementation<?> plugin = pluginRegistry.lookup(pluginId);
if (plugin == null) {
throw new UnknownPluginException("Plugin with id '" + pluginId + "' not found.");
}
pluginResolveContext.add(plugin);
}
Aggregations