You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running GenerateSwaggerCode task on input yaml that contains multiple $refs. With such a setup, gradle doesn't pick up referenced files as input files for the task. Hence, it caches the task output and doesn't rerun the task on content changes in any of the referenced files.
What's the correct approach to both keep using gradle cache and rerun generation on ref changes?
As a workaround, I've added the directory which contains the referenced files as templateDir. So now my codegen task definition looks like that:
input.files is not recognized by GenerateSwaggerCode task
> Could not get unknown property 'input' for task ':acquiring-core:generateSwaggerCode' of type org.hidetake.gradle.swagger.generator.GenerateSwaggerCode.
input.files is not recognized by GenerateSwaggerCode task
> Could not get unknown property 'input' for task ':acquiring-core:generateSwaggerCode' of type org.hidetake.gradle.swagger.generator.GenerateSwaggerCode.
Question
I'm running
GenerateSwaggerCode
task on inputyaml
that contains multiple$ref
s. With such a setup, gradle doesn't pick up referenced files as input files for the task. Hence, it caches the task output and doesn't rerun the task on content changes in any of the referenced files.What's the correct approach to both keep using gradle cache and rerun generation on ref changes?
As a workaround, I've added the directory which contains the referenced files as
templateDir
. So now my codegen task definition looks like that:Environment
Plugin version:
2.15.0
Swagger Codegen version:
2.2.3
Gradle version:
5.1.1
Java version:
8
OS:
OSX
The text was updated successfully, but these errors were encountered: