Hello,
I'm trying to include the Postgres JDBC Driver jar via our Gradle build.
build.gradle looks like this:
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'groovy'
version = 1.0
repositories {
mavenCentral()
}
dependencies {
groovy group: 'org.codehaus.groovy', name: 'groovy', version: '1.7.8'
testCompile group: 'junit', name: 'junit', version: '4.8.2'
compile group: 'commons-cli', name: 'commons-cli', version: '1.1'
compile group: 'log4j', name: 'log4j', version: '1.2.16'
* compile group: 'postgresql', name: 'postgresql', version:
'9.0-801.jdbc4'*
}
When I try to run something like "gradle dependencies", I get the following
error. Any thoughts on how to resolve this issue?
Download
http://repo1.maven.org/maven2/postgresql/postgresql/9.0-801.jdbc4/postgresql-9.0-801.jdbc4.pom
[Fatal Error] ivy-9.0-801.jdbc4.xml.original:3:10: Already seen doctype.
org.xml.sax.SAXParseException: Already seen doctype.
...stacktrace
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: postgresql#postgresql;9.0-801.jdbc4: java.text.ParseException: Already
seen doctype.
::::::::::::::::::::::::::::::::::::::::::::::
:::: ERRORS
Already seen doctype.
FAILURE: Build failed with an exception.
* Where:
Build file
'/Volumes/SSD2/projects/entagen/Dropbox/NIBRGenomeClean/modules/core/trunk/build.gradle'
* What went wrong:
Execution failed for task ':dependencies'.
Cause: Could not resolve all dependencies for configuration ':compile':
- unresolved dependency: postgresql#postgresql;9.0-801.jdbc4:
java.text.ParseException: Already seen doctype.
Thanks in advance,
Mike