You are running into a typical class loading problem that also occurs with app servers. The class loader for Groovy/Gradle sits atop the class loader for the build script. Hence the groovy.sql.Sql class cannot see the org.postgresql.Driver class. Currently I don't know of a better way than to put the driver Jar into Gradle's lib directory. Please raise an issue for this.
-- Peter Niederwieser Developer, Gradle http://www.gradle.org Trainer & Consultant, Gradle Inc. http://www.gradle.biz Founder, Spock Framework http://spockframework.org -- View this message in context: http://gradle.1045684.n5.nabble.com/Question-about-the-buildscripts-own-dependencies-buildscript-tp3358127p3358234.html Sent from the gradle-user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
