Skip to content

Commit 3a311ba

Browse files
committed
Support plugins without an ExecutableLocator
1 parent d7c23d9 commit 3a311ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/com/google/protobuf/gradle/GenerateProtoTask.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public abstract class GenerateProtoTask extends DefaultTask {
355355
}
356356

357357
private List<ExecutableLocator> getAllExecutableLocators() {
358-
[toolsLocator.protoc] + plugins.collect { PluginOptions it -> toolsLocator.plugins.getByName(it.name) }
358+
[toolsLocator.protoc] + plugins.findResults { PluginOptions it -> toolsLocator.plugins.findByName(it.name) }
359359
}
360360

361361
@Internal("Not an actual input to the task, only used to find tasks belonging to a variant")

0 commit comments

Comments
 (0)