-
Notifications
You must be signed in to change notification settings - Fork 6
/
BUILD
38 lines (32 loc) · 986 Bytes
/
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
load("@rules_java//java:defs.bzl", "java_binary")
load("@bazel_tools//tools/jdk:default_java_toolchain.bzl", "VANILLA_TOOLCHAIN_CONFIGURATION", "default_java_toolchain")
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.google.devtools.build.buildjar.BazelEcjJavaBuilder",
runtime_deps = ["//compiler:buildjar"],
)
exports_files(
["WORKSPACE"],
visibility = ["//:__pkg__"],
)
# a special toolchain for compiling ECJ with JDK21 but targeting 17
default_java_toolchain(
name = "java17_toolchain_with_javax21api",
configuration = VANILLA_TOOLCHAIN_CONFIGURATION,
java_runtime = "@rules_java//toolchains:remotejdk_21",
source_version = "17",
target_version = "17",
)