Skip to content

Commit

Permalink
chore: Correct composite task linking logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrylo committed Feb 22, 2024
1 parent 8f00509 commit e4d6734
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions vss-processor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,15 @@ val dependentCompositeBuilds = setOf("vss-processor-plugin")
gradle.projectsEvaluated {
val subProjectTasks = tasks + subprojects.flatMap { it.tasks }

println("Linking Composite Task:")
subProjectTasks
.filter { dependentCompositeTasks.contains(it.name) }
.forEach { task ->
val compositeTask = gradle.includedBuilds
.filter { dependentCompositeBuilds.contains(it.name) }
.map { compositeBuild ->
val compositeTaskPath = task.path.substringAfterLast(":")
println(
"Linking composite task - " +
"${compositeBuild.name}:${task.name} <-> ${task.project.name}:${task.name}",
)
println("${compositeBuild.name}:${task.name} -> ${task.project.name}:${task.name}")

compositeBuild.task(":$compositeTaskPath")
}
Expand Down

0 comments on commit e4d6734

Please sign in to comment.