Search in sources :

Example 1 with PluginDescriptorLocator

use of org.gradle.api.internal.plugins.PluginDescriptorLocator 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);
}
Also used : PluginDescriptorLocator(org.gradle.api.internal.plugins.PluginDescriptorLocator) ClassloaderBackedPluginDescriptorLocator(org.gradle.api.internal.plugins.ClassloaderBackedPluginDescriptorLocator) AlreadyOnClasspathPluginResolver(org.gradle.plugin.use.resolve.internal.AlreadyOnClasspathPluginResolver) ClassLoaderScope(org.gradle.api.internal.initialization.ClassLoaderScope) ClassloaderBackedPluginDescriptorLocator(org.gradle.api.internal.plugins.ClassloaderBackedPluginDescriptorLocator) PluginResolver(org.gradle.plugin.use.resolve.internal.PluginResolver) AlreadyOnClasspathPluginResolver(org.gradle.plugin.use.resolve.internal.AlreadyOnClasspathPluginResolver)

Aggregations

ClassLoaderScope (org.gradle.api.internal.initialization.ClassLoaderScope)1 ClassloaderBackedPluginDescriptorLocator (org.gradle.api.internal.plugins.ClassloaderBackedPluginDescriptorLocator)1 PluginDescriptorLocator (org.gradle.api.internal.plugins.PluginDescriptorLocator)1 AlreadyOnClasspathPluginResolver (org.gradle.plugin.use.resolve.internal.AlreadyOnClasspathPluginResolver)1 PluginResolver (org.gradle.plugin.use.resolve.internal.PluginResolver)1