-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kt_jvm_proto_helper as individual rule. (#396)
* Add kt_jvm_proto_helper as individual rule. This allows the BUILD file to have separate java proto and kt proto rules in case there is a mix of java and proto projects in the same repo, and there are stricter requirement to the output (e.g. leaner dependency chains, smaller binaries for pure-java outputs etc.). This also bypasses an issue in the other rules where the kt_jvm_*_library would compile the whole dependency chain to kotlin, and if the bazel repo is large with many proto dependencies, an can easily end up caching all of these when containing the same classes. If only some of these are refreshed / synced on changes you can easily end up with an IDE claiming your new fields still dont' exist, or removed classes are still there etc. * Also make rule for gRPC part. Which makes btth kr_proto and kt_grpc helper functions. * Alternate approach to support java targets * Fix error introduced during merge --------- Co-authored-by: James Ward <[email protected]> Co-authored-by: aragos <[email protected]>
- Loading branch information
1 parent
e4b88c9
commit 253c24f
Showing
1 changed file
with
107 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters