blob: f34fd3d86eb8e31442e7a1841e3a6414a80b5591 [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 = "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(["**"]),
)