Search in sources :

Example 1 with SelfResolvingPluginRequest

use of org.gradle.initialization.definition.SelfResolvingPluginRequest in project gradle by gradle.

the class SelfResolvingRequestPluginResolver method resolve.

@Override
public void resolve(PluginRequestInternal pluginRequest, PluginResolutionResult result) throws InvalidPluginRequestException {
    if (pluginRequest instanceof SelfResolvingPluginRequest) {
        ClassLoaderScope classLoaderScope = ((SelfResolvingPluginRequest) pluginRequest).getClassLoaderScope();
        PluginResolution pluginResolution = new ClassPathPluginResolution(pluginRequest.getId(), classLoaderScope, EMPTY_CLASSPATH_FACTORY, pluginInspector);
        result.found("injected from outer build", pluginResolution);
    }
}
Also used : ClassLoaderScope(org.gradle.api.internal.initialization.ClassLoaderScope) SelfResolvingPluginRequest(org.gradle.initialization.definition.SelfResolvingPluginRequest)

Aggregations

ClassLoaderScope (org.gradle.api.internal.initialization.ClassLoaderScope)1 SelfResolvingPluginRequest (org.gradle.initialization.definition.SelfResolvingPluginRequest)1