|
|
|
@ -1,8 +1,8 @@ |
|
|
|
|
load("@bazel_skylib//rules:build_test.bzl", "build_test") |
|
|
|
|
load("@rules_java//java:defs.bzl", "java_library", "java_lite_proto_library", "java_proto_library") |
|
|
|
|
load("@rules_jvm_external//:defs.bzl", "java_export") |
|
|
|
|
load("@rules_java//java:defs.bzl", "java_lite_proto_library", "java_proto_library") |
|
|
|
|
load("@rules_pkg//:mappings.bzl", "pkg_files", "strip_prefix") |
|
|
|
|
load("@rules_proto//proto:defs.bzl", "proto_lang_toolchain", "proto_library") |
|
|
|
|
load("//build_defs:java_opts.bzl", "protobuf_java_export", "protobuf_java_library") |
|
|
|
|
load("//conformance:defs.bzl", "conformance_test") |
|
|
|
|
load("//:protobuf.bzl", "internal_gen_well_known_protos_java") |
|
|
|
|
load("//:protobuf_version.bzl", "PROTOBUF_JAVA_VERSION") |
|
|
|
@ -121,7 +121,7 @@ internal_gen_well_known_protos_java( |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
# Should be used as `//java/lite`. |
|
|
|
|
java_library( |
|
|
|
|
protobuf_java_library( |
|
|
|
|
name = "lite", |
|
|
|
|
srcs = LITE_SRCS + [ |
|
|
|
|
":gen_well_known_protos_javalite", |
|
|
|
@ -132,7 +132,7 @@ java_library( |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
# Bazel users, don't depend on this target, use //java/lite. |
|
|
|
|
java_export( |
|
|
|
|
protobuf_java_export( |
|
|
|
|
name = "lite_mvn", |
|
|
|
|
maven_coordinates = "com.google.protobuf:protobuf-javalite:%s" % PROTOBUF_JAVA_VERSION, |
|
|
|
|
pom_template = "//java/lite:pom_template.xml", |
|
|
|
@ -143,7 +143,7 @@ java_export( |
|
|
|
|
runtime_deps = [":lite"], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
java_library( |
|
|
|
|
protobuf_java_library( |
|
|
|
|
name = "lite_runtime_only", |
|
|
|
|
srcs = LITE_SRCS, |
|
|
|
|
) |
|
|
|
@ -166,7 +166,7 @@ internal_gen_well_known_protos_java( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
java_library( |
|
|
|
|
protobuf_java_library( |
|
|
|
|
name = "core", |
|
|
|
|
srcs = glob( |
|
|
|
|
[ |
|
|
|
@ -186,7 +186,7 @@ java_library( |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
# Bazel users, don't depend on this target, use :core. |
|
|
|
|
java_export( |
|
|
|
|
protobuf_java_export( |
|
|
|
|
name = "core_mvn", |
|
|
|
|
maven_coordinates = "com.google.protobuf:protobuf-java:%s" % PROTOBUF_JAVA_VERSION, |
|
|
|
|
pom_template = "pom_template.xml", |
|
|
|
@ -269,7 +269,7 @@ java_proto_library( |
|
|
|
|
deps = [":java_test_protos"], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
java_library( |
|
|
|
|
protobuf_java_library( |
|
|
|
|
name = "test_util", |
|
|
|
|
srcs = [ |
|
|
|
|
"src/test/java/com/google/protobuf/TestUtil.java", |
|
|
|
@ -390,7 +390,7 @@ genrule( |
|
|
|
|
cmd = "awk -f $(location //java/lite:lite.awk) $(location src/test/java/com/google/protobuf/TestUtil.java) > $@", |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
java_library( |
|
|
|
|
protobuf_java_library( |
|
|
|
|
name = "test_util_lite", |
|
|
|
|
srcs = [ |
|
|
|
|
"src/test/java/com/google/protobuf/TestUtilLite.java", |
|
|
|
|