forked from JetBrains/hirschgarten
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
132 lines (118 loc) · 3.26 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
load(
"@rules_intellij//build_defs:build_defs.bzl",
"intellij_plugin",
"intellij_plugin_library",
"optional_plugin_dep",
"plugin_deploy_zip",
"repackaged_files",
"stamped_plugin_xml",
)
load(
"@rules_intellij//build_defs:intellij_plugin_debug_target.bzl",
"intellij_plugin_debug_target",
)
load("//:versions.bzl", "INTELLIJ_BSP_VERSION", "PLATFORM_VERSION", "SINCE_VERSION")
# Changelog file
filegroup(
name = "changelog",
srcs = ["CHANGELOG.md"],
)
optional_plugin_dep(
name = "bsp_with_python",
module = ["com.intellij.modules.python"],
plugin_xml = "//plugin-bsp/src:main/xml/bsp-withPython.xml",
)
optional_plugin_dep(
name = "bsp_with_android",
module = ["org.jetbrains.android"],
plugin_xml = "//plugin-bsp/src:main/xml/bsp-withAndroid.xml",
)
optional_plugin_dep(
name = "bsp_with_go",
module = ["org.jetbrains.plugins.go"],
plugin_xml = "//plugin-bsp/src:main/xml/bsp-withGo.xml",
)
optional_plugin_dep(
name = "bsp_with_cpp",
module = ["com.intellij.clion"],
plugin_xml = "//plugin-bsp/src:main/xml/bsp-withCpp.xml",
)
optional_plugin_dep(
name = "bsp_performance_testing",
module = ["com.jetbrains.performancePlugin"],
plugin_xml = "//plugin-bsp/src:main/xml/bsp-performanceTesting.xml",
)
optional_plugin_dep(
name = "bsp_devkit",
module = ["DevKit"],
plugin_xml = "//plugin-bsp/src:main/xml/bsp-withDevKit.xml",
)
optional_plugin_dep(
name = "bsp_code_with_me",
module = ["com.jetbrains.codeWithMe"],
plugin_xml = "//plugin-bsp/src:main/xml/bsp-withCodeWithMe.xml",
)
intellij_plugin_library(
name = "plugin_library",
optional_plugin_deps = [
":bsp_with_python",
":bsp_with_android",
":bsp_with_go",
":bsp_performance_testing",
":bsp_devkit",
":bsp_code_with_me",
],
plugin_deps = [
"com.intellij.modules.platform",
"com.intellij.java",
"org.jetbrains.kotlin",
],
plugin_xmls = ["//plugin-bsp/src:main/xml/base.xml"],
visibility = ["//visibility:public"],
deps = [
"//plugin-bsp/jps-compilation/src:jps-compilation",
"//plugin-bsp/src:intellij-bsp",
"//plugin-bsp/workspacemodel/src:workspacemodel",
"//protocol",
],
)
stamped_plugin_xml(
name = "stamped_plugin_xml",
changelog_file = "CHANGELOG.md",
description_file = "description.html",
plugin_id = "org.jetbrains.bsp",
plugin_name = "Build Server Protocol (BSP)",
since_build_numbers = {PLATFORM_VERSION: SINCE_VERSION},
stamp_since_build = True,
version = INTELLIJ_BSP_VERSION,
)
intellij_plugin(
name = "intellij-bsp",
plugin_xml = ":stamped_plugin_xml",
tags = [],
visibility = ["//visibility:public"],
deps = [
":plugin_library",
],
)
intellij_plugin_debug_target(
name = "plugin-bsp-debug",
visibility = ["//visibility:public"],
deps = [
":intellij-bsp_jar",
],
)
repackaged_files(
name = "intellij-bsp_jar",
srcs = [":intellij-bsp"],
prefix = "intellij-bsp/lib",
visibility = ["//visibility:public"],
)
plugin_deploy_zip(
name = "intellij-bsp_zip",
srcs = [
":intellij-bsp_jar",
],
visibility = ["//visibility:public"],
zip_filename = "intellij-bsp.zip",
)