Roll back "Android Studio 2020.3: Remove special handling for mockito extensions"
Apparently, some tests broke which didn't run before submit. We'll do a clean roll back and re-apply only the non-breaking changes in a new CL.
# Description:
#
# Plugin source jars for Android Studio (version encoded in directory name)
+load("@//intellij_platform_sdk:build_defs.bzl", "no_mockito_extensions")
+
package(default_visibility = ["//visibility:public"])
licenses(["restricted"])
@@ -15,14 +17,28 @@ java_import(
"android-studio/plugins/cidr-base-plugin/lib/*.jar",
"android-studio/plugins/c-plugin/lib/*.jar",
],
+ exclude = [
+ # mockito-extensions needs to be removed from these jars.
+ "lib/idea.jar",
+ "lib/testFramework.jar",
+ ],
) + ["android-studio/plugins/c-clangd/lib/c-clangd.jar"],
tags = ["intellij-provided-by-sdk"],
+ exports = [":jars_without_mockito_extensions"],
deps = [
# guava v20+ requires this at compile-time when using annotation processors.
"@error_prone_annotations//jar",
],
)
+no_mockito_extensions(
+ name = "jars_without_mockito_extensions",
+ jars = [
+ "lib/idea.jar",
+ "lib/testFramework.jar",
+ ],
+)
+
java_import(
name = "guava",
jars = glob([
