I am having trouble getting a class to load in a gradle script. When I run this code:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath( group:"xerces", name:'xercesImpl', version:'2.9.1')
}
}
task hello {
doLast {
println 'Hello world!'
Class testClass = Class.forName("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl")
assert testClass: "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found"
println "found"
}
}
I get this when I run "gradle hello": java.lang.ClassNotFoundException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
I suspect Jaxp implemenation issues, but don't know much about how jaxp works.
Thanks for any help