parent
972609b679
commit
15bd2c21cf
44 changed files with 118 additions and 63 deletions
@ -0,0 +1,22 @@ |
||||
"""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 |
||||
) |
@ -1,5 +1,6 @@ |
||||
PROTOC_VERSION = "21.12" |
||||
PROTOBUF_JAVA_VERSION = "3.21.12" |
||||
PROTOBUF_PYTHON_VERSION = "4.21.12" |
||||
PROTOBUF_PHP_VERSION = "3.21.12" |
||||
PROTOBUF_RUBY_VERSION = "3.21.12" |
||||
""" Contains version numbers to be used in other bzl files """ |
||||
PROTOC_VERSION = "22.1" |
||||
PROTOBUF_JAVA_VERSION = "3.22.1" |
||||
PROTOBUF_PYTHON_VERSION = "4.22.1" |
||||
PROTOBUF_PHP_VERSION = "3.22.1" |
||||
PROTOBUF_RUBY_VERSION = "3.22.1" |
||||
|
Loading…
Reference in new issue