diff --git a/src/main/groovy/com/google/protobuf/gradle/GenerateProtoTask.groovy b/src/main/groovy/com/google/protobuf/gradle/GenerateProtoTask.groovy index 678e5cf1..d382614c 100644 --- a/src/main/groovy/com/google/protobuf/gradle/GenerateProtoTask.groovy +++ b/src/main/groovy/com/google/protobuf/gradle/GenerateProtoTask.groovy @@ -379,6 +379,18 @@ public abstract class GenerateProtoTask extends DefaultTask { } } + @InputFiles + @PathSensitive(PathSensitivity.NONE) + FileCollection getExecutables() { + objectFactory.fileCollection().from { + protocLocator.getOrNull()?.path + }.from { + pluginsExecutableLocators.get().values() + .collect { it.path } + .findAll { it } + } + } + @Internal("Input captured by getAlternativePaths()") abstract MapProperty getPluginsExecutableLocators()