forked from bazelbuild/intellij
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
175 lines (170 loc) · 6.96 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# Description:
#
# Common test utilities for IntelliJ plugins.
load(
"//intellij_platform_sdk:build_defs.bzl",
"select_for_ide",
"select_for_plugin_api",
)
load(
"//:build-visibility.bzl",
"INTELLIJ_PLUGINS_VISIBILITY",
)
package(default_visibility = INTELLIJ_PLUGINS_VISIBILITY)
licenses(["notice"])
java_library(
name = "lib",
testonly = 1,
srcs = glob(["src/**/*.java"]) +
select_for_ide(
android_studio = glob([
"studio/**/*.java",
"cidr/**/*.java",
]),
default = [],
) + select_for_plugin_api({
"android-studio-2022.2": glob([
"testcompat/v222/com/google/idea/sdkcompat/**/*.java",
"testcompat/v222/com/google/idea/testing/**/*.java",
"testcompat/v222/com/google/idea/java/**/*.java",
]),
"android-studio-2022.3": glob([
"testcompat/v223/com/google/idea/sdkcompat/**/*.java",
"testcompat/v223/com/google/idea/testing/**/*.java",
"testcompat/v223/com/google/idea/java/**/*.java",
]),
"android-studio-2023.1": glob([
"testcompat/v231/com/google/idea/sdkcompat/**/*.java",
"testcompat/v231/com/google/idea/testing/**/*.java",
"testcompat/v231/com/google/idea/java/**/*.java",
]),
"android-studio-2023.2": glob([
"testcompat/v232/com/google/idea/sdkcompat/**/*.java",
"testcompat/v232/com/google/idea/testing/**/*.java",
"testcompat/v232/com/google/idea/java/**/*.java",
]),
"clion-2021.3": glob([
"testcompat/v213/com/google/idea/sdkcompat/**/*.java",
"testcompat/v213/com/google/idea/testing/*.java",
]),
"clion-2022.1": glob([
"testcompat/v221/com/google/idea/sdkcompat/**/*.java",
"testcompat/v221_ij/com/google/idea/sdkcompat/**/*.java",
]),
"clion-2022.2": glob([
"testcompat/v222/com/google/idea/sdkcompat/**/*.java",
"testcompat/v222/com/google/idea/testing/*.java",
]),
"clion-2022.3": glob([
"testcompat/v223/com/google/idea/sdkcompat/**/*.java",
"testcompat/v223/com/google/idea/testing/*.java",
]),
"clion-2023.1": glob([
"testcompat/v231/com/google/idea/sdkcompat/**/*.java",
"testcompat/v231/com/google/idea/testing/*.java",
]),
"clion-2023.2": glob([
"testcompat/v232/com/google/idea/sdkcompat/**/*.java",
"testcompat/v232/com/google/idea/testing/*.java",
]),
"clion-2023.3": glob([
"testcompat/v233/com/google/idea/sdkcompat/**/*.java",
"testcompat/v233/com/google/idea/testing/*.java",
]),
"clion-2024.1": glob([
"testcompat/v241/com/google/idea/sdkcompat/**/*.java",
"testcompat/v241/com/google/idea/testing/*.java",
]),
"intellij-2021.3": glob([
"testcompat/v213/com/google/idea/sdkcompat/**/*.java",
"testcompat/v213/com/google/idea/testing/java/*.java",
]),
"intellij-ue-2021.3": glob([
"testcompat/v213/com/google/idea/sdkcompat/**/*.java",
"testcompat/v213/com/google/idea/testing/java/*.java",
]),
"intellij-2022.1": glob([
"testcompat/v221/com/google/idea/sdkcompat/**/*.java",
"testcompat/v221_ij/com/google/idea/sdkcompat/**/*.java",
"testcompat/v221/com/google/idea/testing/**/*.java",
]),
"intellij-ue-2022.1": glob([
"testcompat/v221/com/google/idea/sdkcompat/**/*.java",
"testcompat/v221_ij/com/google/idea/sdkcompat/**/*.java",
"testcompat/v221/com/google/idea/testing/**/*.java",
]),
"intellij-2022.2": glob([
"testcompat/v222/com/google/idea/sdkcompat/**/*.java",
"testcompat/v222/com/google/idea/testing/**/*.java",
]),
"intellij-ue-2022.2": glob([
"testcompat/v222/com/google/idea/sdkcompat/**/*.java",
"testcompat/v222/com/google/idea/testing/**/*.java",
]),
"intellij-2022.3": glob([
"testcompat/v223/com/google/idea/sdkcompat/**/*.java",
"testcompat/v223/com/google/idea/testing/**/*.java",
"testcompat/v223/com/google/idea/java/**/*.java",
]),
"intellij-ue-2022.3": glob([
"testcompat/v223/com/google/idea/sdkcompat/**/*.java",
"testcompat/v223/com/google/idea/testing/**/*.java",
"testcompat/v223/com/google/idea/java/**/*.java",
]),
"intellij-2023.1": glob([
"testcompat/v231/com/google/idea/sdkcompat/**/*.java",
"testcompat/v231/com/google/idea/testing/**/*.java",
"testcompat/v231/com/google/idea/java/**/*.java",
]),
"intellij-ue-2023.1": glob([
"testcompat/v231/com/google/idea/sdkcompat/**/*.java",
"testcompat/v231/com/google/idea/testing/**/*.java",
"testcompat/v231/com/google/idea/java/**/*.java",
]),
"intellij-2023.2": glob([
"testcompat/v232/com/google/idea/sdkcompat/**/*.java",
"testcompat/v232/com/google/idea/testing/**/*.java",
"testcompat/v232/com/google/idea/java/**/*.java",
]),
"intellij-ue-2023.2": glob([
"testcompat/v232/com/google/idea/sdkcompat/**/*.java",
"testcompat/v232/com/google/idea/testing/**/*.java",
"testcompat/v232/com/google/idea/java/**/*.java",
]),
"intellij-2023.3": glob([
"testcompat/v233/com/google/idea/sdkcompat/**/*.java",
"testcompat/v233/com/google/idea/testing/**/*.java",
"testcompat/v233/com/google/idea/java/**/*.java",
]),
"intellij-ue-2023.3": glob([
"testcompat/v233/com/google/idea/sdkcompat/**/*.java",
"testcompat/v233/com/google/idea/testing/**/*.java",
"testcompat/v233/com/google/idea/java/**/*.java",
]),
"intellij-2024.1": glob([
"testcompat/v241/com/google/idea/sdkcompat/**/*.java",
"testcompat/v241/com/google/idea/testing/**/*.java",
"testcompat/v241/com/google/idea/java/**/*.java",
]),
"intellij-ue-2024.1": glob([
"testcompat/v241/com/google/idea/sdkcompat/**/*.java",
"testcompat/v241/com/google/idea/testing/**/*.java",
"testcompat/v241/com/google/idea/java/**/*.java",
]),
"default": [],
}),
exports = ["//testing/src/com/google/idea/testing/runfiles"],
deps = [
"//common/experiments",
"//common/experiments:unit_test_utils",
"//intellij_platform_sdk:jsr305",
"//intellij_platform_sdk:plugin_api_for_tests",
"@com_google_guava_guava//jar",
"@junit//jar",
],
)
java_library(
name = "runfiles",
testonly = 1,
exports = ["//testing/src/com/google/idea/testing/runfiles"],
)