Skip to content

Commit fc5710d

Browse files
committed
Support leaf modules in changed modules task.
The task should return the module even if nothing depends on it since it likely has tests of its own.
1 parent 921da2e commit fc5710d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

buildSrc/src/main/java/com/google/firebase/gradle/plugins/ci/ChangedModulesTask.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ abstract class ChangedModulesTask : DefaultTask() {
3333
AffectedProjectFinder(project, changedGitPaths.toSet(), listOf()).find().map { it.path }
3434
.toSet()
3535

36-
val result = mutableMapOf<String, MutableSet<String>>()
36+
val result = project.rootProject.subprojects.associateTo(mutableMapOf()) {
37+
it.path to mutableSetOf<String>()
38+
}
3739
project.rootProject.subprojects.forEach { p ->
3840
p.configurations.forEach { c ->
3941
c.dependencies.filterIsInstance<ProjectDependency>().forEach {

0 commit comments

Comments
 (0)