forked from google/desugar_jdk_libs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
119 lines (110 loc) · 3.63 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
alias(
name = "desugar_jdk_libs",
actual = "//src/share/classes/java",
visibility = ["//visibility:public"],
)
alias(
name = "desugar_jdk_libs_jdk11",
actual = "//jdk11/src:d8_java_base_selected_with_addon",
visibility = ["//visibility:public"],
)
genrule(
name = "maven_release",
srcs = [
":desugar_jdk_libs",
"VERSION.txt",
"DEPENDENCIES.txt",
],
outs = ["desugar_jdk_libs.zip"],
cmd = "$(location :build_maven_artifact)" +
" --jar $(location :desugar_jdk_libs)" +
" --artifact_id desugar_jdk_libs" +
" --version_file $(location VERSION.txt)" +
" --dependencies_file $(location DEPENDENCIES.txt)" +
" --out $@",
exec_tools = [":build_maven_artifact"],
)
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 $@",
exec_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 $@",
exec_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 $@",
exec_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 $@",
exec_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 = [
"@androidsdk//:platforms/android-32/android.jar",
],
outs = ["android_jar.jar"],
cmd = "cp $(location @androidsdk//:platforms/android-32/android.jar) $@",
visibility = ["//visibility:public"],
)