There is a way to do this ( project.evaluationDependsOnChildren()), but I recommend using it only as a last resort. Instead, I set up similarities at the top level and differences at the subproject level:
build.gradle( ):
subprojects {
task myTask {
}
}
build.gradle():
myTask {
prop = 'someValue'
}
- script, apply from:. , , (, Gradle ).