-
Notifications
You must be signed in to change notification settings - Fork 296
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: Delete old generated code #1273
Comments
Did you tried calling 'clean' before 'generateJava'? |
That is not a recommended practice even if it works. |
We will look into a fix in the next week or two. In the meantime, if this is a more immediate problem for you, feel free to open a PR as we welcome contributions. |
I would have to check, but I think that deleting all files from the output directory before the codegen should be enough, as input are the same the task would still be cacheable and wouldn't run if they haven't changed 🤔 |
Well, the approach I mentioned before is for the Gradle |
Expected behavior
When a type is removed from the GraphQL schema,
generateJava
task should delete the previous generated classes.Actual behavior
The old classes are kept so it is necessary to delete them manually.
Steps to reproduce
generateJava
generateJava
and check how the old type is still there in the generated directory.The text was updated successfully, but these errors were encountered: