Is there any way to execute a sql script in gradle/groovy?
You can use Groovy’s ‘Sql’ class, but loading the JDBC driver may require some class loader trickery due to a JDBC/Groovy incompatibility.
You could also use ant’s Sql task http://ant.apache.org/manual/Tasks/sql.html