diff --git a/buildSrc/src/main/groovy/MuzzlePlugin.groovy b/buildSrc/src/main/groovy/MuzzlePlugin.groovy index 5b31c67be3f..d52791acb1b 100644 --- a/buildSrc/src/main/groovy/MuzzlePlugin.groovy +++ b/buildSrc/src/main/groovy/MuzzlePlugin.groovy @@ -639,7 +639,7 @@ abstract class MuzzleAction implements WorkAction { assertionMethod.invoke(null, instCL, testCL, assertPass, muzzleDirective) } - static ClassLoader createClassLoader(cp, parent = null) { + static ClassLoader createClassLoader(cp, parent = ClassLoader.systemClassLoader) { return new URLClassLoader(cp*.toURI()*.toURL() as URL[], parent as ClassLoader) } }