-
Notifications
You must be signed in to change notification settings - Fork 5.3k
/
BUILD.bazel
257 lines (246 loc) · 10.1 KB
/
BUILD.bazel
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
load("@rules_java//java:defs.bzl", "java_binary")
load("@rules_kotlin//kotlin:core.bzl", "define_kt_toolchain")
load("//build:compiler-options.bzl", "create_javac_options", "create_kotlinc_options")
create_javac_options(name = "j8", release = "8")
create_kotlinc_options(name= "k8", jvm_target="1.8")
create_javac_options(name = "j11", release = "11")
create_kotlinc_options(name= "k11", jvm_target= "11")
create_javac_options(name = "j17", release = "17")
create_kotlinc_options(name = "k17", jvm_target = "17")
define_kt_toolchain(
name = "kotlin_toolchain",
javac_options = ":j17",
)
java_binary(
name = "main_run",
runtime_deps = [":main"],
main_class = "com.intellij.idea.Main",
jvm_flags = [
"--add-opens=java.base/java.io=ALL-UNNAMED",
"--add-opens=java.base/java.lang=ALL-UNNAMED",
"--add-opens=java.base/java.lang.ref=ALL-UNNAMED",
"--add-opens=java.base/java.lang.reflect=ALL-UNNAMED",
"--add-opens=java.base/java.net=ALL-UNNAMED",
"--add-opens=java.base/java.nio=ALL-UNNAMED",
"--add-opens=java.base/java.nio.charset=ALL-UNNAMED",
"--add-opens=java.base/java.text=ALL-UNNAMED",
"--add-opens=java.base/java.time=ALL-UNNAMED",
"--add-opens=java.base/java.util=ALL-UNNAMED",
"--add-opens=java.base/java.util.concurrent=ALL-UNNAMED",
"--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED",
"--add-opens=java.base/java.util.concurrent.locks=ALL-UNNAMED",
"--add-opens=java.base/jdk.internal.vm=ALL-UNNAMED",
"--add-opens=java.base/sun.net.dns=ALL-UNNAMED",
"--add-opens=java.base/sun.nio.ch=ALL-UNNAMED",
"--add-opens=java.base/sun.nio.fs=ALL-UNNAMED",
"--add-opens=java.base/sun.security.ssl=ALL-UNNAMED",
"--add-opens=java.base/sun.security.util=ALL-UNNAMED",
"--add-opens=java.desktop/com.apple.eawt=ALL-UNNAMED",
"--add-opens=java.desktop/com.apple.eawt.event=ALL-UNNAMED",
"--add-opens=java.desktop/com.apple.laf=ALL-UNNAMED",
"--add-opens=java.desktop/com.sun.java.swing=ALL-UNNAMED",
"--add-opens=java.desktop/com.sun.java.swing.plaf.gtk=ALL-UNNAMED",
"--add-opens=java.desktop/java.awt=ALL-UNNAMED",
"--add-opens=java.desktop/java.awt.dnd.peer=ALL-UNNAMED",
"--add-opens=java.desktop/java.awt.event=ALL-UNNAMED",
"--add-opens=java.desktop/java.awt.font=ALL-UNNAMED",
"--add-opens=java.desktop/java.awt.image=ALL-UNNAMED",
"--add-opens=java.desktop/java.awt.peer=ALL-UNNAMED",
"--add-opens=java.desktop/javax.swing=ALL-UNNAMED",
"--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED",
"--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED",
"--add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED",
"--add-opens=java.desktop/sun.awt=ALL-UNNAMED",
"--add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED",
"--add-opens=java.desktop/sun.awt.datatransfer=ALL-UNNAMED",
"--add-opens=java.desktop/sun.awt.image=ALL-UNNAMED",
"--add-opens=java.desktop/sun.awt.windows=ALL-UNNAMED",
"--add-opens=java.desktop/sun.font=ALL-UNNAMED",
"--add-opens=java.desktop/sun.java2d=ALL-UNNAMED",
"--add-opens=java.desktop/sun.lwawt=ALL-UNNAMED",
"--add-opens=java.desktop/sun.lwawt.macosx=ALL-UNNAMED",
"--add-opens=java.desktop/sun.swing=ALL-UNNAMED",
"--add-opens=java.management/sun.management=ALL-UNNAMED",
"--add-opens=jdk.attach/sun.tools.attach=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED",
"--add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED",
"--add-opens=jdk.jdi/com.sun.tools.jdi=ALL-UNNAMED"
]
)
### auto-generated section `build intellij.idea.community.main` start
load("@rules_java//java:defs.bzl", "java_library")
java_library(
name = "main",
visibility = ["//visibility:public"],
runtime_deps = [
"//platform/main/intellij.platform.monolith.main:monolith-main",
"//plugins/coverage:java-coverage",
"//plugins/ant",
"//platform/boot",
"//platform/bootstrap",
"//java/compiler/impl:java-compiler-impl",
"//java/compiler/openapi:java-compiler",
"//java/debugger/impl:java-debugger-impl",
"//java/debugger/openapi:java-debugger",
"//platform/diff-api:diff",
"//platform/diff-impl",
"//xml/dom-impl",
"//xml/dom-openapi:dom",
"//java/execution/impl:java-execution-impl",
"//java/execution/openapi:java-execution",
"//platform/extensions",
"//platform/forms_rt:java-guiForms-rt",
"//platform/icons",
"//java/idea-ui:ui",
"//java/java-impl:impl",
"//java/java-runtime:rt",
"//java/jsp-openapi:jsp",
"//java/jsp-spi",
"//platform/lang-api:lang",
"//platform/lang-impl",
"//platform/lvcs-api:lvcs",
"//platform/lvcs-impl",
"//java/compiler/instrumentation-util:java-compiler-instrumentationUtil",
"//java/openapi:java",
"//platform/platform-api:ide",
"//platform/platform-impl:ide-impl",
"//platform/starter",
"//plugins/properties",
"//java/ide-resources",
"//java/ide-customization",
"//resources:java-resources",
"//resources-en:java-resources-en",
"//spellchecker",
"//java/jsp-base-openapi:jsp-base",
"//java/testFramework",
"//platform/testRunner",
"//platform/usageView",
"//platform/util",
"//platform/vcs-api:vcs",
"//platform/vcs-impl",
"//platform/xdebugger-api:debugger",
"//platform/xdebugger-impl:debugger-impl",
"//xml/impl",
"//xml/openapi:xml",
"//community-resources:customization",
"//java/plugin",
"//plugins/copyright",
"//platform/testFramework",
"//plugins/ui-designer:java-guiForms-designer",
"//plugins/dev:dev-plugin-main",
"//plugins/devkit/intellij.devkit.plugin:plugin",
"//plugins/eclipse",
"//plugins/git4idea:vcs-git",
"//plugins/git-features-trainer:vcs-git-featuresTrainer",
"//images",
"//plugins/groovy",
"//plugins/junit",
"//plugins/maven",
"//RegExpSupport:regexp",
"//plugins/svn4idea:vcs-svn",
"//plugins/testng",
"//plugins/IntelliLang:java-langInjection",
"//plugins/IntelliLang:xml-langInjection",
"//plugins/xpath",
"//plugins/xslt-debugger",
"//plugins/xslt-debugger/engine:xslt-debugger-rt",
"//plugins/java-i18n",
"//plugins/tasks/tasks-api:tasks",
"//plugins/tasks/tasks-java:java",
"//plugins/github/github-core:vcs-github",
"//plugins/hg4idea:vcs-hg",
"//xml/relaxng",
"//plugins/gradle/java",
"//platform/remote-servers/impl:remoteServers-impl",
"//plugins/properties/properties-resource-bundle-editor:resource-bundle-editor",
"//plugins/javaFX/community",
"//plugins/javaFX/jps",
"//java/manifest",
"//plugins/yaml",
"//plugins/tasks/tasks-core:core",
"//plugins/tasks/tasks-core/jira:tasks-jira",
"//plugins/java-decompiler/plugin:java-decompiler",
"//platform/structuralsearch:structuralSearch",
"//java/structuralsearch-java:structuralSearch",
"//plugins/groovy/structuralsearch-groovy:structuralSearch",
"//plugins/groovy/git",
"//json",
"//java/typeMigration",
"//plugins/terminal",
"//plugins/stats-collector:statsCollector",
"//plugins/completion-ml-ranking-models:completionMlRankingModels",
"//plugins/completion-ml-ranking:completionMlRanking",
"//plugins/stream-debugger:java-debugger-streams",
"@lib//:jgoodies-common",
"//plugins/editorconfig",
"//plugins/changeReminder:vcs-changeReminder",
"//plugins/sh",
"//plugins/terminal/sh",
"//plugins/gradle-maven:gradle-java-maven",
"//plugins/markdown/core:markdown",
"//plugins/markdown/plugin",
"//plugins/webp",
"//plugins/emojipicker",
"//plugins/gradle/gradle-dependency-updater:dependencyUpdater",
"//plugins/settings-sync:settingsSync",
"//plugins/settings-sync/git:settingsSync-git",
"//plugins/settings-sync/jba:settingsSync-jba",
"//java/java-features-trainer:featuresTrainer",
"//plugins/ml-local-models/java:ml-models-local-java",
"//plugins/kotlin:kotlin-plugin-community-main",
"//plugins/laf/macos",
"//plugins/laf/win10",
"//plugins/search-everywhere-ml:searchEverywhereMl",
"//plugins/marketplace-ml:marketplaceMl",
"//plugins/toml",
"//platform/tracing-ide",
"//notebooks/visualization",
"//plugins/keymaps/eclipse-keymap:keymap-eclipse",
"//plugins/keymaps/visual-studio-keymap:keymap-visualStudio",
"//plugins/keymaps/netbeans5.6-keymap:keymap-netbeans",
"//plugins/evaluation-plugin:evaluationPlugin",
"//plugins/evaluation-plugin/languages/java:evaluationPlugin-languages-java",
"//platform/warmup",
"//plugins/remote-control:remoteControl",
"//platform/webSymbols",
"//plugins/performanceTesting/core:performanceTesting",
"//platform/smart-update",
"//plugins/gradle/intellij.gradle.analysis:analysis",
"//plugins/htmltools:html-tools",
"//platform/new-ui-onboarding:ide-newUiOnboarding",
"//platform/new-users-onboarding:ide-newUsersOnboarding",
"//plugins/kotlin/onboarding-promoter",
"//platform/execution-process-elevation",
"//plugins/github/community:vcs-github-community",
"//plugins/gitlab/gitlab-community:vcs-gitlab-community",
"//plugins/gitlab/gitlab-yaml:vcs-gitlab-yaml",
"//plugins/yaml/editing",
"//java/compiler/charts:java-compiler-charts",
"//platform/compose",
"//json/split",
"//java/java-terminal:terminal-tests",
"//java/java-terminal:terminal",
"//jvm/jvm-analysis-impl:analysis-impl",
"//plugins/ByteCodeViewer:java-byteCodeViewer",
"//plugins/github/github-json:vcs-github-json",
]
)
### auto-generated section `build intellij.idea.community.main` end
### auto-generated section `build intellij.idea.community.main.android` start
load("@rules_java//java:defs.bzl", "java_library")
java_library(
name = "main-android",
visibility = ["//visibility:public"],
runtime_deps = [
"//android/android:core",
"//:main",
"//android/android-plugin:plugin",
"//android/layoutlib",
"//plugins/kotlin:kotlin-plugin-community-main",
"//android/compose-designer",
"//android/compose-ide-plugin",
"//android/design-plugin",
"//android/android-navigator:navigator",
]
)
### auto-generated section `build intellij.idea.community.main.android` end