openApiFile
property of ResolveTask
in Gradle plugin doesn't support lazy configuration and task dependency inference
#4366
Labels
Some properties of
ResolveTask
, like for exampleclasspath
orbuildClasspath
support lazy configuration and task dependency inference because their type allows assigning aFileCollection
which supports these Gradle features. Unfortunately it's not the case foropenApiFile
which usesFile
as the type.RegularFileProperty
has been introduced in Gradle 4.3 which if used as the type foropenApiFile
would allow to lazy configure it and infer task dependencies.In my case I'm generating the config file using another task so I would like to be able to do
which would allow Gradle to infer that to run
resolve
it needs to rungenerateSwaggerConfig
first.Please let me know if you are accepting PRs as I'd like to contribute a hopefully backwards change with this enhancement.
The text was updated successfully, but these errors were encountered: