From 3a311bae8bd873a45538fda4c5d1b5bde18ad39f Mon Sep 17 00:00:00 2001 From: Andrew Teirney Date: Thu, 9 Feb 2023 23:02:59 +1300 Subject: [PATCH] Support plugins without an ExecutableLocator --- .../groovy/com/google/protobuf/gradle/GenerateProtoTask.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/groovy/com/google/protobuf/gradle/GenerateProtoTask.groovy b/src/main/groovy/com/google/protobuf/gradle/GenerateProtoTask.groovy index 9c6c412e..d63570fa 100644 --- a/src/main/groovy/com/google/protobuf/gradle/GenerateProtoTask.groovy +++ b/src/main/groovy/com/google/protobuf/gradle/GenerateProtoTask.groovy @@ -355,7 +355,7 @@ public abstract class GenerateProtoTask extends DefaultTask { } private List getAllExecutableLocators() { - [toolsLocator.protoc] + plugins.collect { PluginOptions it -> toolsLocator.plugins.getByName(it.name) } + [toolsLocator.protoc] + plugins.findResults { PluginOptions it -> toolsLocator.plugins.findByName(it.name) } } @Internal("Not an actual input to the task, only used to find tasks belonging to a variant")