diff --git a/base/BUILD b/base/BUILD index 75f35502827..57f88073a07 100644 --- a/base/BUILD +++ b/base/BUILD @@ -22,9 +22,12 @@ load("@rules_kotlin//kotlin:jvm.bzl", "kt_jvm_library") kt_jvm_library( name = "base", - srcs = glob(["src/**/*.java", "src/**/*.kt"]), + srcs = glob([ + "src/**/*.java", + "src/**/*.kt", + ]), + resource_strip_prefix = package_name() + "/src", resources = glob(["src/resources/**/*"]), - resource_strip_prefix = "base/src", visibility = PLUGIN_PACKAGES_VISIBILITY, deps = [ "//common/actions", @@ -35,6 +38,8 @@ kt_jvm_library( "//common/util:platform", "//common/util:process", "//common/util:transactions", + "//intellij_platform_sdk:jsr305", # unuseddeps: keep for @Nullable + "//intellij_platform_sdk:plugin_api", "//proto:proto_deps", "//querysync", "//sdkcompat", @@ -44,8 +49,6 @@ kt_jvm_library( "//shared:proto", "//shared:vcs", "//third_party/java/auto_value", - "//intellij_platform_sdk:plugin_api", - "//intellij_platform_sdk:jsr305", # unuseddeps: keep for @Nullable "@error_prone_annotations//jar", "@gson//jar", ], @@ -93,9 +96,9 @@ java_library( deps = [ ":base", "//common/experiments", - "//proto:proto_deps", - "//intellij_platform_sdk:plugin_api", "//intellij_platform_sdk:jsr305", + "//intellij_platform_sdk:plugin_api", + "//proto:proto_deps", ], ) @@ -106,9 +109,9 @@ java_library( neverlink = 1, visibility = G3PLUGINS_VISIBILITY, deps = [ - "//sdkcompat", - "//intellij_platform_sdk:plugin_api", "//intellij_platform_sdk:jsr305", + "//intellij_platform_sdk:plugin_api", + "//sdkcompat", ], ) @@ -119,8 +122,8 @@ java_library( srcs = glob(["src/com/google/idea/blaze/base/formatter/*.java"]), visibility = G3PLUGINS_VISIBILITY, deps = [ - "//intellij_platform_sdk:plugin_api", "//intellij_platform_sdk:jsr305", # unuseddeps: keep (b/146560321) + "//intellij_platform_sdk:plugin_api", ], ) @@ -145,11 +148,11 @@ java_library( visibility = G3PLUGINS_VISIBILITY, deps = [ ":proto_wrapper", + "//intellij_platform_sdk:jsr305", + "//intellij_platform_sdk:plugin_api", "//proto:proto_deps", "//shared", "//third_party/java/auto_value", - "//intellij_platform_sdk:plugin_api", - "//intellij_platform_sdk:jsr305", "@error_prone_annotations//jar", ], ) @@ -192,8 +195,8 @@ java_library( neverlink = 1, visibility = G3PLUGINS_VISIBILITY, deps = [ - "//intellij_platform_sdk:plugin_api", "//intellij_platform_sdk:jsr305", + "//intellij_platform_sdk:plugin_api", ], ) @@ -207,8 +210,8 @@ java_library( visibility = G3PLUGINS_VISIBILITY, deps = [ ":vfs_api", - "//intellij_platform_sdk:plugin_api", "//intellij_platform_sdk:jsr305", + "//intellij_platform_sdk:plugin_api", ], ) @@ -228,9 +231,9 @@ java_library( visibility = G3PLUGINS_VISIBILITY, deps = [ ":proto_wrapper", - "//proto:proto_deps", - "//intellij_platform_sdk:plugin_api", "//intellij_platform_sdk:jsr305", + "//intellij_platform_sdk:plugin_api", + "//proto:proto_deps", ], ) @@ -243,8 +246,8 @@ java_library( neverlink = 1, visibility = G3PLUGINS_VISIBILITY, deps = [ - "//intellij_platform_sdk:plugin_api", "//intellij_platform_sdk:jsr305", + "//intellij_platform_sdk:plugin_api", ], ) @@ -260,8 +263,8 @@ java_library( visibility = G3PLUGINS_VISIBILITY, deps = [ ":proto_wrapper", - "//intellij_platform_sdk:plugin_api", "//intellij_platform_sdk:jsr305", + "//intellij_platform_sdk:plugin_api", ], ) @@ -277,9 +280,9 @@ java_library( visibility = G3PLUGINS_VISIBILITY, deps = [ "//common/experiments", - "//third_party/java/auto_value", - "//intellij_platform_sdk:plugin_api", "//intellij_platform_sdk:jsr305", + "//intellij_platform_sdk:plugin_api", + "//third_party/java/auto_value", ], ) @@ -295,8 +298,8 @@ java_library( deps = [ ":label_api", ":proto_wrapper", - "//intellij_platform_sdk:plugin_api", "//intellij_platform_sdk:jsr305", # unuseddeps: keep for @Immutable + "//intellij_platform_sdk:plugin_api", ], ) @@ -309,8 +312,8 @@ java_library( neverlink = 1, deps = [ ":logging_api", - "//intellij_platform_sdk:plugin_api", "//intellij_platform_sdk:jsr305", # unuseddeps: keep for @Nullable + "//intellij_platform_sdk:plugin_api", ], ) @@ -330,10 +333,10 @@ java_library( visibility = G3PLUGINS_VISIBILITY, deps = [ ":base", + "//intellij_platform_sdk:jsr305", + "//intellij_platform_sdk:plugin_api", "//proto:proto_deps", "//shared", - "//intellij_platform_sdk:plugin_api", - "//intellij_platform_sdk:jsr305", "@error_prone_annotations//jar", ], ) @@ -353,9 +356,9 @@ java_library( ], deps = [ ":base", - "//third_party/java/auto_value", - "//intellij_platform_sdk:plugin_api", "//intellij_platform_sdk:jsr305", + "//intellij_platform_sdk:plugin_api", + "//third_party/java/auto_value", "@error_prone_annotations//jar", ], ) @@ -380,8 +383,8 @@ java_library( ], neverlink = 1, deps = [ - "//intellij_platform_sdk:plugin_api", "//intellij_platform_sdk:jsr305", # unuseddeps: keep for @Nullable + "//intellij_platform_sdk:plugin_api", ], ) @@ -401,10 +404,10 @@ java_library( visibility = G3PLUGINS_VISIBILITY, deps = [ ":base", + "//intellij_platform_sdk:jsr305", + "//intellij_platform_sdk:plugin_api", "//proto:proto_deps", "//shared:artifact", - "//intellij_platform_sdk:plugin_api", - "//intellij_platform_sdk:jsr305", "@error_prone_annotations//jar", ], ) @@ -435,10 +438,10 @@ java_library( visibility = G3PLUGINS_VISIBILITY, deps = [ ":base", + "//intellij_platform_sdk:jsr305", + "//intellij_platform_sdk:plugin_api", "//proto:proto_deps", "//shared:artifact", - "//intellij_platform_sdk:plugin_api", - "//intellij_platform_sdk:jsr305", "@error_prone_annotations//jar", ], ) @@ -456,10 +459,10 @@ java_library( visibility = G3PLUGINS_VISIBILITY, deps = [ ":base", + "//intellij_platform_sdk:jsr305", + "//intellij_platform_sdk:plugin_api", "//shared", "//shared:artifact", - "//intellij_platform_sdk:plugin_api", - "//intellij_platform_sdk:jsr305", "@error_prone_annotations//jar", ], ) @@ -483,15 +486,15 @@ java_library( visibility = PLUGIN_PACKAGES_VISIBILITY, deps = [ ":base", + "//intellij_platform_sdk:jsr305", + "//intellij_platform_sdk:plugin_api_for_tests", + "//intellij_platform_sdk:test_libs", "//shared:artifact", "//shared:exception", "//testing:lib", "//third_party/bazel/src/main/java/com/google/devtools/build/lib/buildeventstream/proto:build_event_stream_java_proto", "//third_party/java/auto_value", "//third_party/java/junit", - "//intellij_platform_sdk:jsr305", - "//intellij_platform_sdk:plugin_api_for_tests", - "//intellij_platform_sdk:test_libs", "@com_google_guava_guava//jar", "@error_prone_annotations//jar", ], @@ -512,15 +515,15 @@ java_library( deps = [ ":base", ":unit_test_utils", + "//intellij_platform_sdk:jsr305", + "//intellij_platform_sdk:plugin_api_for_tests", + "//intellij_platform_sdk:test_libs", "//proto:proto_deps", "//sdkcompat", "//shared:artifact", "//shared:vcs", "//testing:lib", "//third_party/java/junit", - "//intellij_platform_sdk:jsr305", - "//intellij_platform_sdk:plugin_api_for_tests", - "//intellij_platform_sdk:test_libs", "@bazel_tools//tools/java/runfiles", "@com_google_guava_guava//jar", ], @@ -538,6 +541,9 @@ intellij_unit_test_suite( "//common/experiments", "//common/experiments:unit_test_utils", "//common/util:process", + "//intellij_platform_sdk:jsr305", + "//intellij_platform_sdk:plugin_api_for_tests", + "//intellij_platform_sdk:test_libs", "//proto:proto_deps", "//querysync", "//querysync/javatests/com/google/idea/blaze/qsync:TestUtils", @@ -549,9 +555,6 @@ intellij_unit_test_suite( "//testing:lib", "//third_party/java/auto_value", "//third_party/java/junit", - "//intellij_platform_sdk:jsr305", - "//intellij_platform_sdk:plugin_api_for_tests", - "//intellij_platform_sdk:test_libs", "@com_google_guava_guava//jar", ], ) @@ -585,18 +588,18 @@ intellij_integration_test_suite( ":base", ":integration_test_utils", ":unit_test_utils", + "//intellij_platform_sdk:jsr305", + "//intellij_platform_sdk:plugin_api", + "//intellij_platform_sdk:plugin_api_for_tests", # unuseddeps: keep + "//intellij_platform_sdk:test_libs", "//proto:proto_deps", "//querysync", "//querysync/javatests/com/google/idea/blaze/qsync/artifacts:mock_artifact_cache", "//shared:exception", "//shared/javatests/com/google/idea/blaze/common:test_utils", - "//intellij_platform_sdk:plugin_api", - "//intellij_platform_sdk:jsr305", - "//intellij_platform_sdk:plugin_api_for_tests", # unuseddeps: keep - "//intellij_platform_sdk:test_libs", "//third_party/java/junit", - "@org_opentest4j_opentest4j//jar", "@com_google_guava_guava//jar", "@error_prone_annotations//jar", + "@org_opentest4j_opentest4j//jar", ], )