I have an existing groovy script with 3 @Grab annotations before the first import, to get dependencies.
I've recently been reading "Making Java Groovy" (on Safari). In chapter 5, I saw the following statement:
"Because a member of a class can only have a single instance of a particular annotation, the @Grapes annotation is used to combine multiple @Grab annotations."
In the context of my script, which works just fine with multiple separate @Grab annotations, this is obviously false, but I imagine this statement likely used to be true. Does anyone know if that's the case?
Now in Groovy there are limits we are bound to by the JVM and thus we had to have @Grapes. Groovy already supports multiple annotations of the same type for a while, but if it works or not, depends on your JVM
subject: Having multiple @Grab annotations not within a @Grapes annotation