parent
1456462a14
commit
340d24ce8a
1 changed files with 21 additions and 0 deletions
@ -0,0 +1,21 @@ |
||||
"""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, |
||||
) |
Loading…
Reference in new issue