use of org.gradle.plugin.use.PluginId in project gradle by gradle.
the class DefaultPluginRegistry method lookup.
@Nullable
private PluginImplementation<?> lookup(PluginId pluginId, ClassLoader classLoader) {
// Don't go up the parent chain.
// Don't want to risk classes crossing “scope” boundaries and being non collectible.
PluginImplementation lookup;
if (pluginId.getNamespace() == null) {
PluginId qualified = pluginId.withNamespace(DefaultPluginManager.CORE_PLUGIN_NAMESPACE);
lookup = uncheckedGet(idMappings, new PluginIdLookupCacheKey(qualified, classLoader)).orNull();
if (lookup != null) {
return lookup;
}
}
return uncheckedGet(idMappings, new PluginIdLookupCacheKey(pluginId, classLoader)).orNull();
}
Aggregations