Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
488 B
22 lines
488 B
2 years ago
|
"""Java options and protobuf-specific java build rules with those options."""
|
||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||
|
load("@rules_jvm_external//:defs.bzl", "java_export")
|
||
|
|
||
|
JAVA_OPTS = [
|
||
|
"-source 8",
|
||
|
"-target 8",
|
||
|
"-Xep:Java8ApiChecker:ERROR",
|
||
|
]
|
||
|
|
||
|
def protobuf_java_export(**kwargs):
|
||
|
java_export(
|
||
|
javacopts = JAVA_OPTS,
|
||
|
**kwargs,
|
||
|
)
|
||
|
|
||
|
def protobuf_java_library(**kwargs):
|
||
|
java_library(
|
||
|
javacopts = JAVA_OPTS,
|
||
|
**kwargs,
|
||
|
)
|