diff --git a/buildSrc/src/main/groovy/MuzzlePlugin.groovy b/buildSrc/src/main/groovy/MuzzlePlugin.groovy index 1e28c5c35fe0..7f9f016d123d 100644 --- a/buildSrc/src/main/groovy/MuzzlePlugin.groovy +++ b/buildSrc/src/main/groovy/MuzzlePlugin.groovy @@ -146,7 +146,7 @@ class MuzzlePlugin implements Plugin { 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 {