all: Only depend on evaluation of enumerated subprojects

Back in 10fb206 when this for loop was added, we didn't have the
subprojects list. That was added in 9bd7bab, but I failed to update one
reference to rootProject. So all has had an evaluation dependency on all
projects, even though it only needs a subset.

This should have little impact, but would prevent weird scenarios like
an issue in :grpc-gae-interop-testing-jdk8 preventing :all-all from
being loaded. Not to say things wouldn't still fail to load, but that
this bug could distract from the real problem. I noticed this
during #8049.
This commit is contained in:
Eric Anderson 2021-04-13 12:39:09 -07:00 committed by Eric Anderson
parent 84dc5642bc
commit 8a9aa41416
1 changed files with 2 additions and 1 deletions

View File

@ -24,12 +24,13 @@ def subprojects = [
project(':grpc-xds'),
]
for (subproject in rootProject.subprojects) {
for (subproject in subprojects) {
if (subproject == project) {
continue
}
evaluationDependsOn(subproject.path)
}
evaluationDependsOn(':grpc-interop-testing')
dependencies {
api subprojects.minus([project(':grpc-protobuf-lite')])