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 3, 2022
1 parent 8df229f commit 76a3569
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 76a3569

Please sign in to comment.