classLoaderScope.export(classPath);
classLoaderScope.lock();
}
private PluginResolver wrapInNotInClasspathCheck(ClassLoaderScope classLoaderScope) {
PluginDescriptorLocator scriptClasspathPluginDescriptorLocator = new ClassloaderBackedPluginDescriptorLocator(classLoaderScope.getParent().getExportClassLoader());
return new NotNonCorePluginOnClasspathCheckPluginResolver(pluginResolver, pluginRegistry, scriptClasspathPluginDescriptorLocator);
}