Partially revert The try-with-resources library need to be compiled with java7, as we directly copy the classes into the desugared jar.
RELNOTES: None
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",
+ ],
visibility = ["//src/tools/android/java/com/google/devtools/build/android/desugar:__pkg__"],
)
