f0cb9cdb95
* [bazel] Move Java runtime/toolchains into //java This change moves `java_library` targets from the top-level BUILD file into `//java/{core,lite,util}` and declares `alias` targets to point to their new locations (hence, this is not a breaking change). This will allow users that don't use Java to stop depending on `@rules_java` (e.g. as requested in https://github.com/bazelbuild/rules_scala/pull/989#issuecomment-583405161). Note that there is no intention to deprecate + remove the top-level targets in the foreseeable future. * Add BUILD files in //java to java_EXTRA_DIST
21 lines
446 B
Python
21 lines
446 B
Python
load("@rules_java//java:defs.bzl", "java_library")
|
|
|
|
java_library(
|
|
name = "util",
|
|
srcs = glob([
|
|
"src/main/java/com/google/protobuf/util/*.java",
|
|
]),
|
|
javacopts = [
|
|
"-source 7",
|
|
"-target 7",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//external:error_prone_annotations",
|
|
"//external:gson",
|
|
"//external:guava",
|
|
"//java/core",
|
|
"//java/lite",
|
|
],
|
|
)
|