Skip to content

Commit

Permalink
Consider path definitions as task inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
clayburn committed May 4, 2022
1 parent bd499dd commit a92e8eb
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, ExecutableLocator> getPluginsExecutableLocators()

Expand Down

0 comments on commit a92e8eb

Please sign in to comment.