mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-140273 "Cannot @Grab without Ivy" error in 14.1
This commit is contained in:
+4
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user