Description
With Groovy 2.3.0, is appears not to be possible to resolve resources from Grapes via the classloader.
I access the classloader through
Thread.currentThread().getContextClassLoader();
In Groovy 2.3.0, this returns a org.codehaus.groovy.tools.RootLoader which does not seem to know about Grapes.
In Groovy 2.2.2 and before, it returns a groovy.lang.GroovyClassLoader which knows about Grapes.
Resources are then resolved e.g. using
classloader.getResources("META-INF/org.apache.uima.fit/types.txt")
In Groovy 2.3.0, this returns no resources. In Groovy 2.2.2 it successfully locates the resources. This is with the same script, same Grape cache, same JDK, just different versions of Groovy used.
Related reports:
Attachments
Issue Links
- relates to
-
GROOVY-6771 Grapes broken in 2.3
- Closed