Use platformClassLoader as muzzle parent instead of bootstrap.
MODIFY
buildSrc/src/main/groovy/MuzzlePlugin.groovy
buildSrc/src/main/groovy/MuzzlePlugin.groovy
@@ -146,7 +146,7 @@ class MuzzlePlugin implements Plugin<Project> {
toolingProject.getLogger().info('--' + f)
urls.add(f.toURI().toURL())
}
- def loader = new URLClassLoader(urls.toArray(new URL[0]), (ClassLoader) null)
+ def loader = new URLClassLoader(urls.toArray(new URL[0]), ClassLoader.platformClassLoader)
assert TOOLING_LOADER.compareAndSet(null, loader)
return TOOLING_LOADER.get()
} else {

Use platformClassLoader as muzzle parent instead of bootstrap. (#1183)