forked from salesforce/bazel-jdt-java-toolchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
39 lines (33 loc) · 1.05 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
load("@rules_java//java:defs.bzl", "java_binary")
load("@bazel_tools//tools/jdk:default_java_toolchain.bzl", "default_java_toolchain", "VANILLA_TOOLCHAIN_CONFIGURATION")
licenses(["notice"])
exports_files(["LICENSE"])
filegroup(
name = "distribution",
srcs = [
"BUILD",
"LICENSE",
"//compiler/export:srcs",
"//compiler/tools:srcs",
"//jdt:srcs",
],
visibility = ["@//dist:__pkg__"],
)
java_binary(
name = "JdtJavaBuilder",
#main_class = "com.salesforce.bazel.jdt.toolchain.builder.JdtJavaBuilder",
main_class = "com.google.devtools.build.buildjar.BazelEcjJavaBuilder",
runtime_deps = ["//compiler:jdt_java_builder_lib"],
)
exports_files(
["WORKSPACE"],
visibility = ["//:__pkg__"],
)
# a special toolchain for compiling ECJ with JDK17 but targeting 11
default_java_toolchain(
name = "java11_toolchain_with_javax17api",
configuration = VANILLA_TOOLCHAIN_CONFIGURATION,
java_runtime = "@bazel_tools//tools/jdk:remotejdk_17",
source_version = "11",
target_version = "11",
)