Groovy @Grab in DataMelt
|
11-07-2015, 07:31 AM
(This post was last modified: 11-07-2015 07:32 AM by regrehan.)
Post: #1
|
|||
|
|||
Groovy @Grab in DataMelt
I'd like to be able to use Groovy with DataMelt. I find it easy (in other environments), to open a GroovyConsole and test out some code.
However, the GroovyConsole in DataMelt seems to have problems with the @Grapes/@Grab annotations. Whenever I try it, I get the following exception: ========= java.lang.NoClassDefFoundError: org/apache/ivy/core/report/ResolveReport at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclar[font=Courier]edMethods(Class.java:2615) at java.lang.Class.getDeclaredMethods(Class.java:1860) at java.security.AccessController.doPrivileged(Native Method) at groovy.grape.GrapeIvy.$getStaticMetaClass(GrapeIvy.groovy) at groovy.grape.GrapeIvy.<init>(GrapeIvy.groovy:75) at java.lang.Class.newInstance(Class.java:379) at groovy.grape.Grape.getInstance(Grape.java:97) at groovy.grape.Grape.grab(Grape.java:132) at groovy.grape.GrabAnnotationTransformation.visit(GrabAnnotationTransformation.java:311) ========= The same code works fine "outside" of DataMelt. --rick grehan |
|||
11-14-2015, 11:36 PM
Post: #2
|
|||
|
|||
RE: Groovy @Grab in DataMelt
Hello,
Thanks for your report. We will update the groovy library in the net release best, Admin |
|||
11-15-2015, 12:27 AM
Post: #3
|
|||
|
|||
RE: Groovy @Grab in DataMelt
Hello,
This Groovy issues was fixed for the beta version dmelt-1.4 posted on the download page. When a make a file test.groovy : Code: @Grab(group='commons-lang', module='commons-lang', version='2.4') and run it as "dm_b test.groovy", it prints "Hello World" best, Sergei[/code] (11-07-2015 07:31 AM)regrehan Wrote: I'd like to be able to use Groovy with DataMelt. I find it easy (in other environments), to open a GroovyConsole and test out some code. |
|||
11-15-2015, 08:11 AM
Post: #4
|
|||
|
|||
RE: Groovy @Grab in DataMelt
Hello, I do not think this feature can work. Dmelt includes "embedded" version of groovy. This version of Groovy does not include
ivy-2.4.0.jar. So, it's really a bug in Groovy. By adding ivy-2.4.0.jar to Dmelt breaks Groovy console and other features.. I think Groovy team should fix this in their jar embedded version of groovy. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)