blob: bf1f779096a6812043d0c7c49d10c19728e7f365 [file] [log] [blame]
load("@rules_java//java:defs.bzl", "java_library")
# Description:
# This is the extension package to support desugaring try-with-resources statements.
package(
default_visibility = [
"//src/test/java/com/google/devtools/build/android/desugar:__subpackages__",
"//src/tools/android/java/com/google/devtools/build/android/desugar:__pkg__",
],
)
java_library(
name = "throwable_extension",
srcs = ["ThrowableExtension.java"],
# This library must be compiled with java7, as we directly copy it to the desugared jar.
javacopts = [
"-source 7",
"-target 7",
],
)
java_library(
name = "primitives",
srcs = [
"PrimitiveHashcode.java",
"UnsignedLongs.java",
],
# This library must be compiled with java7, as we directly copy it to the desugared jar.
javacopts = [
"-source 7",
"-target 7",
],
)
java_library(
name = "string_concats",
srcs = ["StringConcats.java"],
# This library must be compiled with java7, as we directly copy it to the desugared jar.
javacopts = [
"-source 7",
"-target 7",
],
)
filegroup(
name = "srcs",
srcs = glob(["**"]),
)