diff --git a/plugins/groovy/jps-plugin/src/org/jetbrains/jps/incremental/groovy/InProcessGroovyc.java b/plugins/groovy/jps-plugin/src/org/jetbrains/jps/incremental/groovy/InProcessGroovyc.java index 59b365a08fb4..8696fa19500c 100644 --- a/plugins/groovy/jps-plugin/src/org/jetbrains/jps/incremental/groovy/InProcessGroovyc.java +++ b/plugins/groovy/jps-plugin/src/org/jetbrains/jps/incremental/groovy/InProcessGroovyc.java @@ -249,6 +249,10 @@ class InProcessGroovyc implements GroovycFlavor { ClassLoader wrapper = new URLClassLoader(new URL[0], groovyAllLoader) { @Override protected Class loadClass(String name, boolean resolve) throws ClassNotFoundException { + if (name.startsWith("groovy.grape.")) { + // grape depends on Ivy which is not included in this class loader + throw new ClassNotFoundException(name); + } try { return checkWellFormed.loadDependencies(super.loadClass(name, resolve)); }