Incorrectly depends on compiling tests
pkubowicz opened this issue · comments
Piotr Kubowicz commented
Current logic adds dependency on all tasks that:
task.getName().startsWith("compile") && !task.getName().startsWith("compileTest")
This is incorrect, as you may have more types of tests than standard ones:
https://blog.gradle.org/introducing-test-suites
You can have compileIntegrationTest
and many more.
The correct logic should be:
&& !task.getName().contains("Test")