I’m using the Java plugin and when I print the runtimeClasspath of the test sourceset I get all the dependencies from my main sourceset, including jersey rest implementations, hibernate everything.
This is not what I want or expect. I’d expect only testCompile dependencies to be put in there.
This would also explain why the test runner takes so long to load.
Can anyone explain to me how those extra dependencies end up there and how to fix it?