David Resnick wrote: > > When I run the sonar task with the driver configured to > "com.postgresql.Driver" I get an internal error that boils down to a > ClassNotFoundException for the postgresql driver. > > Has anyone else encountered this? Any ideas on which scope I could add the > postgresql driver to? > > I've opened issue http://issues.gradle.org/browse/GRADLE-1498 for this. >
The Sonar client library comes with its own class loader that's isolated from the rest of Gradle. I think we'll have to add explicit support for adding classes to that class loader. I'm afraid there is nothing you can do until then. However, I'll try to upload a Gradle snapshot once the issue is fixed. Please watch the issue. -- Peter Niederwieser Developer, Gradle http://www.gradle.org Trainer & Consultant, Gradleware http://www.gradleware.com Creator, Spock Framework http://spockframework.org -- View this message in context: http://gradle.1045684.n5.nabble.com/Adding-postgresql-driver-to-sonar-task-tp4345660p4346262.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
