-
Notifications
You must be signed in to change notification settings - Fork 280
"./gradlew clean" should remove files from generated source dirs #24
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
Comments
Workaround is just to augment the clean task:
|
I am concerned about the safety of this feature. Because |
imho:
|
I can imagine some people pointing Technically you are right, but people make mistakes, and I don't want their trivial mistakes to easily turn into accidents. In general, I don't want to encourage the practice of putting generated files outside of |
If it's not recommended, why not deprecate the possibility. That way the problem will not be present. For a possible solution, Gradle would have to know how, in term of file path, protoc is transforming the inputs. This would enable incremental compilation as we would know which files to remove when a proto file is deleted to keep everything up to date. Saving the processed information in a temporary file would enable both incremental compilation and cleaning. The only problem is the duplicate information between protoc and Gradle. If we can get the knowledge from protoc, then it wouldn't be a problem. Let me know what you guys think. |
Let's move the discussion to #33 |
Instead of the app blanking out to a white screen, it should be closed instead.
I'm setting
generatedFilesBaseDir = "$projectDir/src/generated"
so IntelliJ can more easily recognize my generated proto .java files as sources. When I re-generate these files, I want aclean
to remove them (in case I renamed a class withjava_outer_classname
, for instance)The text was updated successfully, but these errors were encountered: