use of org.apache.meecrowave.gradle.classloader.FilterGradleClassLoader in project meecrowave by apache.
the class MeecrowaveTask method createLoader.
private ClassLoader createLoader(final ClassLoader parent) {
final Collection<URL> urls = new LinkedHashSet<>(64);
addFiles(modules, urls);
for (final Configuration cc : getProject().getConfigurations()) {
if (applicationScopes.contains(cc.getName())) {
addFiles(cc.getFiles(), urls);
}
}
addFiles(classpath.getFiles(), urls);
// use JVM loader to avoid the noise of gradle and its plugins
return new URLClassLoader(urls.toArray(new URL[urls.size()]), new FilterGradleClassLoader(parent, classloaderFilteredPackages));
}
Aggregations