use of org.gradle.api.internal.plugins.ClassloaderBackedPluginDescriptorLocator in project gradle by gradle.
the class DefaultPluginRequestApplicator method wrapInAlreadyInClasspathResolver.
private PluginResolver wrapInAlreadyInClasspathResolver(ClassLoaderScope classLoaderScope) {
ClassLoaderScope parentLoaderScope = classLoaderScope.getParent();
PluginDescriptorLocator scriptClasspathPluginDescriptorLocator = new ClassloaderBackedPluginDescriptorLocator(parentLoaderScope.getExportClassLoader());
PluginResolver pluginResolver = pluginResolverFactory.create();
return new AlreadyOnClasspathPluginResolver(pluginResolver, pluginRegistry, parentLoaderScope, scriptClasspathPluginDescriptorLocator, pluginInspector);
}
Aggregations