Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] openapi-generator-gradle-plugin ignores changes in templates #11808

Closed
neopaf opened this issue Mar 5, 2022 · 1 comment · Fixed by #13671
Closed

[BUG] openapi-generator-gradle-plugin ignores changes in templates #11808

neopaf opened this issue Mar 5, 2022 · 1 comment · Fixed by #13671

Comments

@neopaf
Copy link

neopaf commented Mar 5, 2022

Description

When I change files in templates folder

    templateDir = "templates"

I expect task to be triggered. But it goes "UP-TO-DATE"

openapi-generator version

5.4.0

Generation Details
Suggest a fix

Workaround:

    inputs.dir 'templates'

But it should not be necessary, right?

@mcwhitak
Copy link

mcwhitak commented May 6, 2022

I believe this will be solved by #12303 as that PR switches templateDir from a String (@Input) to a DirectoryProperty (@InputDir)

Which will cause a change in any of the underlying files in the directory to mark the task as out-of-date

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants