From fc8a927ea42d47535d4e4416cb123e6f7b936b13 Mon Sep 17 00:00:00 2001 From: cushon Date: Tue, 25 Sep 2018 18:06:14 -0700 Subject: [PATCH] Deprecate targets in the JDK workspace for removal See https://github.com/bazelbuild/bazel/issues/5594 PiperOrigin-RevId: 214537295 --- src/main/tools/jdk.BUILD | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/main/tools/jdk.BUILD b/src/main/tools/jdk.BUILD index 71e686c85cc707..ce757ac3bca4ae 100644 --- a/src/main/tools/jdk.BUILD +++ b/src/main/tools/jdk.BUILD @@ -7,30 +7,36 @@ DEPRECATION_MESSAGE = ("Don't depend on targets in the JDK workspace;" + filegroup( name = "jni_header", srcs = ["include/jni.h"], + deprecation = DEPRECATION_MESSAGE, ) filegroup( name = "jni_md_header-darwin", srcs = ["include/darwin/jni_md.h"], + deprecation = DEPRECATION_MESSAGE, ) filegroup( name = "jni_md_header-linux", srcs = ["include/linux/jni_md.h"], + deprecation = DEPRECATION_MESSAGE, ) filegroup( name = "jni_md_header-freebsd", srcs = ["include/freebsd/jni_md.h"], + deprecation = DEPRECATION_MESSAGE, ) filegroup( name = "jni_md_header-windows", srcs = ["include/win32/jni_md.h"], + deprecation = DEPRECATION_MESSAGE, ) filegroup( name = "java", + deprecation = DEPRECATION_MESSAGE, srcs = select({ ":windows": ["bin/java.exe"], "//conditions:default": ["bin/java"], @@ -40,6 +46,7 @@ filegroup( filegroup( name = "jar", + deprecation = DEPRECATION_MESSAGE, srcs = select({ ":windows": ["bin/jar.exe"], "//conditions:default": ["bin/jar"], @@ -48,6 +55,7 @@ filegroup( ) filegroup( + deprecation = DEPRECATION_MESSAGE, name = "javac", srcs = select({ ":windows": ["bin/javac.exe"], @@ -57,11 +65,13 @@ filegroup( ) filegroup( + deprecation = DEPRECATION_MESSAGE, name = "xjc", srcs = ["bin/xjc"], ) filegroup( + deprecation = DEPRECATION_MESSAGE, name = "wsimport", srcs = ["bin/wsimport"], ) @@ -76,6 +86,7 @@ BOOTCLASS_JARS = [ # TODO(cushon): this isn't compatible with JDK 9 filegroup( + deprecation = DEPRECATION_MESSAGE, name = "bootclasspath", srcs = ["jre/lib/%s" % jar for jar in BOOTCLASS_JARS], ) @@ -83,11 +94,13 @@ filegroup( # TODO(cushon): migrate to extclasspath and delete filegroup( name = "extdir", + deprecation = DEPRECATION_MESSAGE, srcs = glob(["jre/lib/ext/*.jar"]), ) filegroup( name = "extclasspath", + deprecation = DEPRECATION_MESSAGE, srcs = glob(["jre/lib/ext/*.jar"]), ) @@ -100,6 +113,7 @@ filegroup( ":windows": glob(["jre/bin/**"], exclude = ["jre/bin/plugin2/**"]), "//conditions:default": glob(["jre/bin/**"]), }), + deprecation = DEPRECATION_MESSAGE, ) filegroup( @@ -118,6 +132,7 @@ filegroup( ":jre-bin", ":jre-lib", ], + deprecation = DEPRECATION_MESSAGE, ) filegroup( @@ -159,12 +174,14 @@ java_runtime( filegroup( name = "langtools", srcs = ["lib/tools.jar"], + deprecation = DEPRECATION_MESSAGE, ) java_import( name = "langtools-neverlink", jars = ["lib/tools.jar"], neverlink = 1, + deprecation = DEPRECATION_MESSAGE, ) config_setting(