I have a groovy script like so:
@Grab(\'com.univocity:univocity-parsers:2.0.0\') import com.univocity.parsers.csv.*; class MyCsvParser { }
An
You should add the ivy dependency. It's not added by default because it's declared as non-transitive. Ivy is the library which manages the dependencies loaded by @Grab:
@Grab
<dependency> <groupId>org.apache.ivy</groupId> <artifactId>ivy</artifactId> <version>2.4.0</version> </dependency>