Closed alexander-yevsyukov closed 3 months ago
Attention: Patch coverage is 0%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 37.83%. Comparing base (
6eae621
) to head (3ead41b
).
@alexander-yevsyukov LGTM, but please see my comment.
Also, I don't understand how this PR addresses filtering out the gRPC-generated sources. I am sure it works :) But let's discuss how :)
It's indeed not obvious. I've. updated the description of the PR.
This PR fixes filtering source sets that are output of gRPC compiler.
ImplementValidatingBuilder
action does not apply to these sources and fail with an exception when a Java file could not be found.Previously, the code of
ImplementValidatingBuilder
action relied on the call toSourceFileSet.hasJavaFiles
, which checks for the presence of a Java file in the set. gRPC Protobuf compiler does produce Java files, but the output placed under thegrpc
directory does not contain message files participating in gRPC calls. They are placed underjava
directory. Because of this it is not possible to find a source code file matching a message in the source file set with thegrpc
output directory.Now, we call
SourceFileSet.hasJavaOutput
, which checks the target directory and that solves the filtering issue.