Closed tschulte closed 9 years ago
Workaround:
in build.gradle, instead of
compile gradleApi()
use
compile files(gradleApi().resolve().findAll { !it.name.startsWith('xerces') && !it.name.startsWith('xml-apis') })
Working in a fork mode could be an another workaround - see #32.
Yes, you are right, setting fork = true does also fix this issue for me.
I touched up the documentation on the fork
property. If you want classloader isolation, go with fork = true
.
But with fork=true, code coverage using jacoco does not work.
Correct, that's because the tests run in a different JVM. See #42.
The following project:
build.gradle:
src/test/groovy/nebula/TestIntegrationSpec.groovy:
leads with gradle 2.4-rc-1 and gradle 2.3 to a ClassCastException while executing the test: