forked from bazelbuild/intellij
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
128 lines (116 loc) · 3.15 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
load("@bazel_tools//tools/jdk:default_java_toolchain.bzl", "default_java_toolchain")
#
# Description: Blaze plugin for various IntelliJ products.
#
load(
"//:build-visibility.bzl",
"BAZEL_PLUGIN_SUBPACKAGES",
"DEFAULT_TEST_VISIBILITY",
"create_plugin_packages_group",
)
licenses(["notice"])
create_plugin_packages_group()
# Changelog file
filegroup(
name = "changelog",
srcs = ["CHANGELOG"],
visibility = BAZEL_PLUGIN_SUBPACKAGES,
)
# BEGIN-EXTERNAL
# IJwB tests, run with an IntelliJ plugin SDK
test_suite(
name = "ijwb_common_tests",
tests = [
"//base:integration_tests",
"//base:unit_tests",
"//dart:unit_tests",
"//ijwb:integration_tests",
"//ijwb:unit_tests",
"//java:integration_tests",
"//java:unit_tests",
"//kotlin:integration_tests",
"//kotlin:unit_tests",
"//plugin_dev:integration_tests",
"//scala:integration_tests",
"//scala:unit_tests",
"//skylark:unit_tests",
],
)
# CE-compatible IJwB tests
# UE supports python as well, but we use python-ce.jar for integration tests.
# Since 2019.3, python-ce.jar needs 'com.intellij.modules.python-core-capable',
# but UE only has 'com.intellij.modules.python-pro-capable' instead.
test_suite(
name = "ijwb_ce_tests",
tests = [
":ijwb_common_tests",
"//python:integration_tests",
"//python:unit_tests",
],
)
# UE-compatible IJwB tests
test_suite(
name = "ijwb_ue_tests",
tests = [
":ijwb_common_tests",
"//gazelle:integration_tests",
"//golang:integration_tests",
"//golang:unit_tests",
"//javascript:integration_tests",
"//javascript:unit_tests",
],
)
# CLwB tests, run with a CLion plugin SDK
test_suite(
name = "clwb_tests",
tests = [
"//base:unit_tests",
"//clwb:unit_tests",
"//cpp:unit_tests",
"//dart:unit_tests",
"//python:unit_tests",
"//skylark:unit_tests",
],
)
# END-EXTERNAL
# ASwB tests, run with an Android Studio plugin SDK
test_suite(
name = "aswb_tests",
tests = [
"//aswb:integration_tests",
"//aswb:unit_tests",
"//base:integration_tests",
"//base:unit_tests",
"//cpp:integration_tests",
"//cpp:unit_tests",
"//dart:unit_tests",
"//java:integration_tests",
"//java:unit_tests",
"//skylark:unit_tests",
],
visibility = DEFAULT_TEST_VISIBILITY,
)
default_java_toolchain(
name = "custom_java_17_toolchain",
configuration = dict(),
java_runtime = "@rules_java//toolchains:remotejdk_17",
package_configuration = [
":java_8",
],
source_version = "17",
target_version = "17",
)
# this associates a set of javac flags with a set of packages
java_package_configuration(
name = "java_8",
javacopts = ["-source 8 -target 8"],
packages = ["java_8_packages"],
)
# this is a regular package_group, which is used to specify a set of packages to apply flags to
package_group(
name = "java_8_packages",
packages = [
"//proto/...",
"//third_party/bazel/src/main/protobuf/...",
],
)