I have this simple build.gradle
subprojects {
test {}
}
project(':module1') {
apply plugin: 'java'
}
and Gradle complains that it could not find method test()
on root project. But why does it try to find it on the root project? I read here that subprojects don't include root project. And if I put println name
to subprojects I also don't see root project in the output.