-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathBUILD
104 lines (96 loc) · 3.16 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
alias(
name = "desugar_jdk_libs_jdk11",
actual = "//jdk11/src:d8_java_base_selected_with_addon",
visibility = ["//visibility:public"],
)
genrule(
name = "desugar_jdk_libs",
srcs = [":desugar_jdk_libs_jdk11"],
outs = ["desugar_jdk_libs.jar"],
cmd = "cp $< $@",
visibility = ["//visibility:public"],
)
genrule(
name = "maven_release_jdk11_legacy",
srcs = [
":desugar_jdk_libs_jdk11",
"VERSION_JDK11_LEGACY.txt",
"DEPENDENCIES_JDK11_LEGACY.txt",
],
outs = ["desugar_jdk_libs_jdk11_legacy.zip"],
cmd = "$(location :build_maven_artifact)" +
" --jar $(location :desugar_jdk_libs_jdk11)" +
" --artifact_id desugar_jdk_libs" +
" --version_file $(location VERSION_JDK11_LEGACY.txt)" +
" --dependencies_file $(location DEPENDENCIES_JDK11_LEGACY.txt)" +
" --out $@",
tools = [":build_maven_artifact"],
)
genrule(
name = "maven_release_jdk11_minimal",
srcs = [
":desugar_jdk_libs_jdk11",
"VERSION_JDK11_MINIMAL.txt",
"DEPENDENCIES_JDK11_MINIMAL.txt",
],
outs = ["desugar_jdk_libs_jdk11_minimal.zip"],
cmd = "$(location :build_maven_artifact)" +
" --jar $(location :desugar_jdk_libs_jdk11)" +
" --artifact_id desugar_jdk_libs_minimal" +
" --version_file $(location VERSION_JDK11_MINIMAL.txt)" +
" --dependencies_file $(location DEPENDENCIES_JDK11_MINIMAL.txt)" +
" --out $@",
tools = [":build_maven_artifact"],
)
genrule(
name = "maven_release_jdk11",
srcs = [
":desugar_jdk_libs_jdk11",
"VERSION_JDK11.txt",
"DEPENDENCIES_JDK11.txt",
],
outs = ["desugar_jdk_libs_jdk11.zip"],
cmd = "$(location :build_maven_artifact)" +
" --jar $(location :desugar_jdk_libs_jdk11)" +
" --artifact_id desugar_jdk_libs" +
" --version_file $(location VERSION_JDK11.txt)" +
" --dependencies_file $(location DEPENDENCIES_JDK11.txt)" +
" --out $@",
tools = [":build_maven_artifact"],
)
genrule(
name = "maven_release_jdk11_nio",
srcs = [
":desugar_jdk_libs_jdk11",
"VERSION_JDK11_NIO.txt",
"DEPENDENCIES_JDK11_NIO.txt",
],
outs = ["desugar_jdk_libs_jdk11_nio.zip"],
cmd = "$(location :build_maven_artifact)" +
" --jar $(location :desugar_jdk_libs_jdk11)" +
" --artifact_id desugar_jdk_libs_nio" +
" --version_file $(location VERSION_JDK11_NIO.txt)" +
" --dependencies_file $(location DEPENDENCIES_JDK11_NIO.txt)" +
" --out $@",
tools = [":build_maven_artifact"],
)
py_binary(
name = "build_maven_artifact",
srcs = ["tools/build_maven_artifact.py"],
python_version = "PY3",
srcs_version = "PY3",
)
alias(
name = "tools/jdk_type_selector",
actual = "//tools/java/com/google/devtools/build/android:jdk_type_selector",
visibility = ["//visibility:public"],
)
genrule(
name = "android_jar",
srcs = [
"@bazel_tools//tools/android:android_jar",
],
outs = ["android_jar.jar"],
cmd = "cp $(location @bazel_tools//tools/android:android_jar) $@",
visibility = ["//visibility:public"],
)