I have this at the beginning of a class:
@Grab(group = \'org.ccil.cowan.tagsoup\', module = \'tagsoup\', version = \'1.2\')
class MyClass{...
There's one more solution for testing a class with @Grab
annotation:
@Grab
annotation to this class. Then make this class a simple wrapper, which just passes all the messages to the original class.@Grab
, use the wrapper.