blob: b6ee8142baa43eb4a07d8f7e97b7ebb144558e7d [file] [log] [blame]
"""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,
)