I want to simplify my execution of a Groovy script that makes calls to an Oracle database. How do I add the ojdbc jar to the default classpath so that I can run:
<
One way would be using @Grab in the code:
@GrabConfig(systemClassLoader=true) @Grab('com.oracle:ojdbc6:12.1.0.2.0') Class.forName("oracle.jdbc.OracleDriver").newInstance()