Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exclude generate files from all javac lint checks (#409)
The default gradle protobuf plugin includes the generated java sources in the same `compileJava` task that your own sources live. IF you want to turn on any `javac -Xlint` options or `-Werror` you need to completely refactor your gradle project to have a separate sub-project containing just the protos. Separately, the generated java code should probably strive to pass all javac lint checks but at least this change allows the generated files to be excluded (this is a similar approach used by Jooq and immutables java). Signed-off-by: Shawn Morel <smorel@plenty.ag>
- Loading branch information