Skip to content

Commit

Permalink
Avoid eager task creations (#544)
Browse files Browse the repository at this point in the history
fixes #475
  • Loading branch information
larsgrefer authored Feb 11, 2022
1 parent 8128e85 commit 1e483db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ class ProtobufPlugin implements Plugin<Project> {
} else {
// It is possible for a compile task to not exist yet. For example, if someone applied
// the proto plugin and then later applies the kotlin plugin.
project.tasks.whenTaskAdded { Task task ->
project.tasks.configureEach { Task task ->
if (task.name == compileTaskName) {
linkGenerateProtoTasksToTask(task, genProtoTask)
}
Expand Down

0 comments on commit 1e483db

Please sign in to comment.