blob: 015f3c844f48562ec158a3a0e48cf28a2823b566 [file] [log] [blame]
Colin Crossaf0b54c2017-09-27 17:22:32 -07001// Copyright (C) 2007 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//
Neil Fuller77e3f3b2018-10-19 10:22:32 +010016// Definitions for building the Android core library and associated tests.
Colin Crossaf0b54c2017-09-27 17:22:32 -070017//
18
Neil Fuller77e3f3b2018-10-19 10:22:32 +010019// The Android core library provides low-level APIs for use by the rest of the
20// Android software stack. It is made up of various parts, some of which can be
21// found in libcore/ and other parts that can be found in various external/
Paul Duffinfb46f732019-09-25 16:04:21 +010022// directories.
23//
Neil Fullercf756882018-08-28 18:42:22 +010024// libcore has some sub-directories that follow a common structure:
25// e.g. dalvik, dom, harmony-tests, json, jsr166-tests, luni, libart, ojluni,
26// support, xml, xmlpull.
Colin Crossaf0b54c2017-09-27 17:22:32 -070027//
Neil Fullercf756882018-08-28 18:42:22 +010028// The structure of these is generally:
Colin Crossaf0b54c2017-09-27 17:22:32 -070029//
30// src/
31// main/ # To be shipped on every device.
32// java/ # Java source for library code.
Neil Fullercf756882018-08-28 18:42:22 +010033// native/ # C/C++ source for library code.
Colin Crossaf0b54c2017-09-27 17:22:32 -070034// resources/ # Support files.
35// test/ # Built only on demand, for testing.
36// java/ # Java source for tests.
Neil Fullercf756882018-08-28 18:42:22 +010037// native/ # C/C++ source for tests (rare).
Colin Crossaf0b54c2017-09-27 17:22:32 -070038// resources/ # Support files.
39//
Neil Fullercf756882018-08-28 18:42:22 +010040// All subdirectories are optional.
Colin Crossaf0b54c2017-09-27 17:22:32 -070041
42build = [
43 "openjdk_java_files.bp",
44 "non_openjdk_java_files.bp",
45]
46
47// The Java files and their associated resources.
Tobias Thierer79eea262019-08-01 14:05:11 +010048filegroup {
49 name: "core-luni-resources",
50 visibility: [
51 "//libcore:__subpackages__",
52 ],
53 path: "luni/src/main/java/",
54 srcs: [
Tobias Thierer79eea262019-08-01 14:05:11 +010055 "luni/src/main/java/java/util/logging/logging.properties",
56 "luni/src/main/java/java/security/security.properties",
57 ],
58}
59
60filegroup {
61 name: "core-ojluni-resources",
62 visibility: [
63 "//libcore:__subpackages__",
64 ],
65 path: "ojluni/src/main/resources/",
66 srcs: [
67 "ojluni/src/main/resources/**/*",
68 ],
69}
70
71core_resources = [
72 ":core-luni-resources",
73 ":core-ojluni-resources",
Colin Crossaf0b54c2017-09-27 17:22:32 -070074]
75
Neil Fuller866ed4a2018-09-06 12:05:46 +010076// The source files that go into core-oj.
77filegroup {
78 name: "core_oj_java_files",
Paul Duffinc241d6a2019-06-25 15:40:29 +010079 visibility: [
80 "//libcore:__subpackages__",
81 ],
Neil Fuller866ed4a2018-09-06 12:05:46 +010082 srcs: [":openjdk_java_files"],
83}
84
Sorin Basca8e856252021-08-16 17:38:00 +000085// http://b/129765390, http://b/188966706
86// Rewrite links to "platform" or "technotes" folders which are siblings
87// (and thus outside of) {@docRoot}.
88//
89// We have to escape \ as \\ and $ as $$ here because they get resolved by
90// different layers of the build tooling. The arguments are wrapped in '' so
91// that the shell doesn't add yet another level of escaping.
Victor Changcf2cf852023-05-02 11:56:52 +010092rewrite_openjdk_doc_links = "sed -E 's" +
93 "!(\\{@docRoot\\}/\\.\\./|[./]+)((platform|technotes).+)\">" +
Sorin Basca121a1a92022-02-02 13:43:55 +000094 "!https://docs.oracle.com/javase/8/docs/\\2\">!' " +
Victor Changffa789a2023-04-26 16:02:56 +010095 "$(in) " +
Victor Changcf2cf852023-05-02 11:56:52 +010096 "| sed -E 's" + // Android doesn't have java.base in the API docs
97 "!(\\{@docRoot\\}/)(java\\.base/)(.+)\">" +
Victor Changffa789a2023-04-26 16:02:56 +010098 "!\\1reference/\\3\">!' " +
Victor Changcf2cf852023-05-02 11:56:52 +010099 "| sed -E 's" +
100 "!(\\{@docRoot\\}/\\.\\./)(specs/.+)\">" +
Victor Changffa789a2023-04-26 16:02:56 +0100101 "!https://docs.oracle.com/en/java/javase/17/docs/\\2\">!' " +
102 " > $(out) " +
103 "&& ! grep '{@docRoot}/../' $(out)" // exit with 1 if "{@docRoot}/../" still exists.
Sorin Basca8e856252021-08-16 17:38:00 +0000104
Neil Fullere32e2e12019-02-26 11:48:30 +0000105// OpenJDK source is not annotated with @hide so we need this separate
Neil Fuller866ed4a2018-09-06 12:05:46 +0100106// filegroup for just the parts that contribute to the API.
Sorin Basca8e856252021-08-16 17:38:00 +0000107gensrcs {
Neil Fuller866ed4a2018-09-06 12:05:46 +0100108 name: "core_oj_api_files",
Sorin Basca8e856252021-08-16 17:38:00 +0000109 cmd: rewrite_openjdk_doc_links,
Neil Fuller866ed4a2018-09-06 12:05:46 +0100110 srcs: [":openjdk_javadoc_files"],
Sorin Basca8e856252021-08-16 17:38:00 +0000111 output_extension: "java",
Neil Fuller866ed4a2018-09-06 12:05:46 +0100112}
113
Miguel49d4f332022-02-16 11:10:24 +0000114// The source files that go into core-libart.l
Neil Fuller866ed4a2018-09-06 12:05:46 +0100115filegroup {
116 name: "core_libart_java_files",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100117 visibility: [
118 "//libcore:__subpackages__",
119 ],
Neil Fuller866ed4a2018-09-06 12:05:46 +0100120 srcs: [
121 ":non_openjdk_java_files",
Neil Fuller866ed4a2018-09-06 12:05:46 +0100122 ],
123}
124
Neil Fullere32e2e12019-02-26 11:48:30 +0000125// Some parts of libart are not annotated with @hide so we need this separate
Neil Fuller866ed4a2018-09-06 12:05:46 +0100126// filegroup for just the parts that contribute to the API.
127filegroup {
128 name: "core_libart_api_files",
129 srcs: [
130 ":non_openjdk_javadoc_files",
Neil Fuller866ed4a2018-09-06 12:05:46 +0100131 ],
132}
133
Paul Duffina38da2d2019-10-01 17:49:50 +0100134// The set of files for the ART module that contribute to one or more API
135// surfaces. This includes files that are in the public API as well as those
136// that are not but which have been marked up with @hide plus one or more of
137// the API defining annotations.
138//
139// Some source files in :core_oj_api_files and :openjdk_mmodule_extra_files are
140// annotated by applying annotations to the .annotated.java stubs files in
141// ojluni/annotated/mmodules and rather than in the original source. See the comments
142// in openjdk_java_files.bp for more details.
143filegroup {
144 name: "art_module_api_files",
145 visibility: [
146 "//libcore:__subpackages__",
147 ],
148 srcs: [
Neil Fullerd129bc92018-09-26 11:12:58 +0100149 ":apache-xml_api_files",
Neil Fullera77f7102018-09-21 19:04:41 +0100150 ":bouncycastle_java_files",
Neil Fuller866ed4a2018-09-06 12:05:46 +0100151 ":core_oj_api_files",
152 ":core_libart_api_files",
Neil Fuller641d5f92018-09-24 15:40:39 +0100153 ":okhttp_api_files",
Pete Gillinc9935b62018-09-25 14:42:40 +0100154 ":openjdk_mmodule_extra_files",
Neil Fuller866ed4a2018-09-06 12:05:46 +0100155 ],
156}
157
Colin Crossaf0b54c2017-09-27 17:22:32 -0700158java_defaults {
159 name: "libcore_java_defaults",
Orion Hodson9e54acd2022-10-27 12:55:56 +0100160 visibility: [
161 "//libcore:__subpackages__",
162 ],
Colin Crossaf0b54c2017-09-27 17:22:32 -0700163 javacflags: [
164 //"-Xlint:all",
165 //"-Xlint:-serial,-deprecation,-unchecked",
166 ],
Orion Hodsoncac55ff2022-09-09 13:58:18 +0100167 dxflags: [
168 "--android-platform-build",
169 "--core-library",
170 ],
Andreas Gampe66b31732018-02-20 09:22:16 -0800171 errorprone: {
172 javacflags: [
Paul Duffinc31f6bb2019-05-15 12:32:44 +0100173 "-Xep:MissingOverride:OFF", // Ignore missing @Override.
174 "-Xep:ConstantOverflow:WARN", // Known constant overflow in SplittableRandom
Cole Faust821863d2022-02-03 14:59:40 -0800175 "-Xep:UnicodeInCode:WARN", // XML parser uses line feeds in whitespace
Cole Faustc06793a22022-10-15 21:33:32 -0700176 "-Xep:ReturnValueIgnored:WARN",
177 "-Xep:HashtableContains:WARN",
178 "-Xep:ComparableType:WARN",
179 "-Xep:IdentityBinaryExpression:WARN",
180 "-Xep:BoxedPrimitiveEquality:WARN",
181 "-Xep:EmptyTopLevelDeclaration:WARN",
182 "-Xep:GetClassOnClass:WARN",
183 "-Xep:NullableOnContainingClass:WARN",
184 "-Xep:GetClassOnAnnotation:WARN",
Andreas Gampe66b31732018-02-20 09:22:16 -0800185 ],
186 },
Cole Faust38f61652022-06-28 14:23:13 -0700187 lint: {
Orion Hodson195a8b22022-08-15 20:25:00 +0100188 warning_checks: [
189 "SuspiciousIndentation",
190 "NewApi",
191 ],
Cole Faust38f61652022-06-28 14:23:13 -0700192 },
Nicolas Geoffray83f47302021-03-03 22:00:47 +0000193 min_sdk_version: "31",
Colin Crossaf0b54c2017-09-27 17:22:32 -0700194}
195
196//
197// Build for the target (device).
198//
199
Tobias Thierer52331642019-05-29 12:11:39 +0000200// A target used to bootstrap compilation for the core library.
Paul Duffina8173c52019-09-24 13:04:42 +0100201//
Tobias Thierer52331642019-05-29 12:11:39 +0000202// See core-all-system-modules for more details.
203java_library {
204 name: "core-all",
Tobias Thierer52331642019-05-29 12:11:39 +0000205 defaults: ["libcore_java_defaults"],
Colin Crossaf0b54c2017-09-27 17:22:32 -0700206
207 srcs: [
Paul Duffinf975b712019-10-02 12:37:38 +0100208 // Use the source code for the I18N module intra core API as using the
209 // compiled version does not work due to limitations in either soong or the javac
210 // toolchain. See http://b/142056316 for more details.
Nicolas Geoffray1bb65aa2020-06-03 14:41:07 +0100211 ":i18n.module.intra.core.api{.public.stubs.source}",
Neil Fuller866ed4a2018-09-06 12:05:46 +0100212 ":core_oj_java_files",
213 ":core_libart_java_files",
Victor Chang0cd67fb2021-05-12 10:35:00 +0100214 // framework-api-annotations contain API annotations, e.g. @SystemApi.
215 ":framework-api-annotations",
Colin Crossaf0b54c2017-09-27 17:22:32 -0700216 ":openjdk_lambda_stub_files",
atrost69474bb2019-11-04 17:06:25 +0000217 ":app-compat-annotations-source",
paulhu4a7a9452021-03-15 16:51:19 +0800218
219 // Use the okhttp source too to allow libcore code to reference it
220 // directly.
221 ":okhttp_impl_files",
Colin Crossaf0b54c2017-09-27 17:22:32 -0700222 ],
Colin Crossec80f4f2018-08-15 21:17:11 -0700223
Paul Duffin83c25382019-06-07 14:10:49 +0100224 sdk_version: "none",
Colin Crossec80f4f2018-08-15 21:17:11 -0700225 system_modules: "none",
Paul Duffin1d7d4a72019-10-10 18:15:01 +0100226 patch_module: "java.base",
Colin Crossa4d9fc42017-09-29 18:04:37 -0700227 openjdk9: {
228 srcs: ["luni/src/module/java/module-info.java"],
Colin Crossa4d9fc42017-09-29 18:04:37 -0700229 },
Colin Crossec80f4f2018-08-15 21:17:11 -0700230
Tobias Thierer79eea262019-08-01 14:05:11 +0100231 java_resources: core_resources,
Colin Crossaf0b54c2017-09-27 17:22:32 -0700232
Colin Crossaf0b54c2017-09-27 17:22:32 -0700233 installable: false,
atrost98ec08d2019-08-05 12:23:41 +0100234
Artur Satayeva09cba02020-02-19 16:43:32 +0000235 plugins: [
236 "compat-changeid-annotation-processor",
237 "unsupportedappusage-annotation-processor",
238 ],
paulhu4a7a9452021-03-15 16:51:19 +0800239 libs: [
240 "conscrypt.module.intra.core.api",
241 ],
atrost98ec08d2019-08-05 12:23:41 +0100242}
243
244platform_compat_config {
245 name: "libcore-platform-compat-config",
atrost98ec08d2019-08-05 12:23:41 +0100246 src: ":core-all",
Paul Duffin90262402021-03-19 15:14:09 +0000247 visibility: [
248 "//art/build/apex",
249 "//art/build/sdk",
250 ],
Colin Crossaf0b54c2017-09-27 17:22:32 -0700251}
252
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100253// A system modules definition for use by core library targets only. It only
254// contains the core-all jar, which contains the classes that end up in core-oj,
255// core-libart as well as the lambda stubs needed to compile Java lambda code.
256// It does not contain other parts of core library like conscrypt, bouncycastle,
257// etc. This system_modules definition is used to bootstrap compilation for
Paul Duffin00b174e2019-09-26 16:22:17 +0100258// other parts of the core library like core-oj, core-libart, conscrypt,
Roland Levillain6dad3e22020-08-20 20:30:16 +0100259// bouncycastle, etc. It is also used to compile Libcore tests, as well as ART
260// Java tests (run-tests).
Colin Crossa4d9fc42017-09-29 18:04:37 -0700261java_system_modules {
262 name: "core-all-system-modules",
Paul Duffina8173c52019-09-24 13:04:42 +0100263
264 // Visibility is deliberately restricted to a small set of build modules that
265 // the core library team control.
266 visibility: [
Roland Levillainefa963d2020-02-13 15:44:43 +0000267 "//art/test:__subpackages__",
Jihoon Kang6fbe9992024-02-13 06:37:03 +0000268 "//build/make/tools/aconfig/fake_device_config",
Paul Duffina8173c52019-09-24 13:04:42 +0100269 "//external/apache-harmony:__subpackages__",
270 "//external/apache-xml",
Jihoon Kang6fbe9992024-02-13 06:37:03 +0000271 "//external/icu",
Paul Duffina8173c52019-09-24 13:04:42 +0100272 "//external/okhttp",
Jihoon Kang6fbe9992024-02-13 06:37:03 +0000273 "//frameworks/libs/modules-utils/java",
Paul Duffina8173c52019-09-24 13:04:42 +0100274 "//libcore:__subpackages__",
Jihoon Kang6fbe9992024-02-13 06:37:03 +0000275 "//tools/platform-compat/java/android/compat/annotation",
Paul Duffina8173c52019-09-24 13:04:42 +0100276 ],
277
Colin Crossa4d9fc42017-09-29 18:04:37 -0700278 libs: ["core-all"],
279}
280
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100281// Contains the parts of core library associated with OpenJDK.
Colin Crossaf0b54c2017-09-27 17:22:32 -0700282java_library {
283 name: "core-oj",
Paul Duffin48ac7b62019-03-28 14:28:06 +0000284 visibility: [
285 "//art/build/apex",
Martin Stjernholm6b50f8f2020-12-17 18:03:21 +0000286 "//art/build/sdk",
Paul Duffin48ac7b62019-03-28 14:28:06 +0000287 "//external/wycheproof",
Paul Duffin94f70232019-05-22 16:22:29 +0100288 "//libcore/benchmarks",
Martin Stjernholm6b50f8f2020-12-17 18:03:21 +0000289 "//packages/modules/ArtPrebuilt",
Paul Duffin48ac7b62019-03-28 14:28:06 +0000290 ],
Jiyong Parkb916cac2019-12-19 02:12:09 +0000291 apex_available: [
Martin Stjernholmfe8feb62020-10-12 15:11:14 +0100292 "com.android.art",
Jiyong Parkb916cac2019-12-19 02:12:09 +0000293 "com.android.art.debug",
294 ],
Colin Crossaf0b54c2017-09-27 17:22:32 -0700295 defaults: ["libcore_java_defaults"],
Colin Cross5b75cdd2018-06-27 11:00:13 -0700296 installable: true,
Colin Crossbb180be2017-10-09 14:54:53 -0700297 hostdex: true,
Colin Crossaf0b54c2017-09-27 17:22:32 -0700298
Neil Fuller866ed4a2018-09-06 12:05:46 +0100299 srcs: [":core_oj_java_files"],
Tobias Thierer79eea262019-08-01 14:05:11 +0100300 java_resources: core_resources,
Colin Crossec80f4f2018-08-15 21:17:11 -0700301
Paul Duffin83c25382019-06-07 14:10:49 +0100302 sdk_version: "none",
Colin Crossa4d9fc42017-09-29 18:04:37 -0700303 system_modules: "core-all-system-modules",
Paul Duffin1d7d4a72019-10-10 18:15:01 +0100304 patch_module: "java.base",
Colin Crossec80f4f2018-08-15 21:17:11 -0700305
Pete Gillin7a7a6d22017-12-19 14:56:03 +0000306 jacoco: {
Pete Gillin27ca0582018-01-10 17:04:17 +0000307 exclude_filter: [
Pete Gillin3f59bad2018-01-30 11:20:29 +0000308 "java.lang.Class",
309 "java.lang.Long",
310 "java.lang.Number",
311 "java.lang.Object",
312 "java.lang.String",
313 "java.lang.invoke.MethodHandle",
Orion Hodson650aa362021-11-15 09:29:51 +0000314 "java.lang.invoke.VarHandle",
Pete Gillin3f59bad2018-01-30 11:20:29 +0000315 "java.lang.ref.Reference",
316 "java.lang.reflect.Proxy",
Pete Gillinb1868ada2018-01-17 11:03:10 +0000317 "java.util.AbstractMap",
Pete Gillin3f59bad2018-01-30 11:20:29 +0000318 "java.util.HashMap",
319 "java.util.HashMap$Node",
Pete Gillinb1868ada2018-01-17 11:03:10 +0000320 "java.util.Map",
Pete Gillin7a7a6d22017-12-19 14:56:03 +0000321 ],
322 },
Colin Crossaf0b54c2017-09-27 17:22:32 -0700323
Paul Duffinb51fc6f2021-01-26 14:59:17 +0000324 hiddenapi_additional_annotations: [
325 "core-oj-hiddenapi-annotations",
326 ],
Cole Faustc06793a22022-10-15 21:33:32 -0700327
328 errorprone: {
329 javacflags: [
330 "-Xep:ReturnValueIgnored:WARN",
331 "-Xep:HashtableContains:WARN",
332 "-Xep:ComparableType:WARN",
333 "-Xep:IdentityBinaryExpression:WARN",
334 "-Xep:BoxedPrimitiveEquality:WARN",
335 "-Xep:EmptyTopLevelDeclaration:WARN",
336 "-Xep:GetClassOnClass:WARN",
337 ],
338 },
Colin Crossaf0b54c2017-09-27 17:22:32 -0700339}
340
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100341// Contains parts of core library not associated with OpenJDK. Contains not
Victor Changcad47af2019-08-06 16:33:38 +0100342// just java.*, javax.* code but also android.system.* and various internal
343// libcore.* packages.
Colin Crossaf0b54c2017-09-27 17:22:32 -0700344java_library {
345 name: "core-libart",
Paul Duffin48ac7b62019-03-28 14:28:06 +0000346 visibility: [
347 "//art/build/apex",
Paul Duffin8d01a552020-03-25 12:02:54 +0000348 "//art/build/sdk",
Paul Duffin48ac7b62019-03-28 14:28:06 +0000349 "//external/wycheproof",
Paul Duffin94f70232019-05-22 16:22:29 +0100350 "//libcore/benchmarks",
Martin Stjernholm6b50f8f2020-12-17 18:03:21 +0000351 "//packages/modules/ArtPrebuilt",
Paul Duffin48ac7b62019-03-28 14:28:06 +0000352 ],
Jiyong Parkb916cac2019-12-19 02:12:09 +0000353 apex_available: [
Martin Stjernholmfe8feb62020-10-12 15:11:14 +0100354 "com.android.art",
Jiyong Parkb916cac2019-12-19 02:12:09 +0000355 "com.android.art.debug",
356 ],
Colin Crossaf0b54c2017-09-27 17:22:32 -0700357 defaults: ["libcore_java_defaults"],
Colin Cross5b75cdd2018-06-27 11:00:13 -0700358 installable: true,
Colin Crossbb180be2017-10-09 14:54:53 -0700359 hostdex: true,
Colin Crossaf0b54c2017-09-27 17:22:32 -0700360
Neil Fuller866ed4a2018-09-06 12:05:46 +0100361 srcs: [":core_libart_java_files"],
Colin Crossaf0b54c2017-09-27 17:22:32 -0700362
Paul Duffin83c25382019-06-07 14:10:49 +0100363 sdk_version: "none",
Colin Crossa4d9fc42017-09-29 18:04:37 -0700364 system_modules: "core-all-system-modules",
Paul Duffin1d7d4a72019-10-10 18:15:01 +0100365 patch_module: "java.base",
Colin Crossec80f4f2018-08-15 21:17:11 -0700366
Pete Gillin80ebe872018-02-13 15:21:20 +0000367 jacoco: {
368 exclude_filter: [
369 "java.lang.DexCache",
370 "dalvik.system.ClassExt",
371 ],
372 },
Colin Crossaf0b54c2017-09-27 17:22:32 -0700373
Andreas Gampe9a1ba892019-04-24 12:35:40 -0700374 target: {
375 hostdex: {
376 required: [
Neil Fuller53c5f032019-06-05 13:47:39 +0100377 // Files used to simulate the /system, runtime APEX and tzdata
378 // APEX dir structure on host.
379 "icu_tzdata.dat_host_tzdata_apex",
Andreas Gampe9a1ba892019-04-24 12:35:40 -0700380 "tzdata_host",
Neil Fuller53c5f032019-06-05 13:47:39 +0100381 "tzdata_host_tzdata_apex",
Neil Fuller53c5f032019-06-05 13:47:39 +0100382 "tzlookup.xml_host_tzdata_apex",
Andreas Gampe9a1ba892019-04-24 12:35:40 -0700383 "tz_version_host",
Neil Fuller53c5f032019-06-05 13:47:39 +0100384 "tz_version_host_tzdata_apex",
Andreas Gampe9a1ba892019-04-24 12:35:40 -0700385 ],
386 },
Yo Chiang119e3e12020-08-07 04:22:18 +0000387 darwin: {
388 enabled: false,
389 },
Andreas Gampe9a1ba892019-04-24 12:35:40 -0700390 },
Cole Faustc06793a22022-10-15 21:33:32 -0700391
392 errorprone: {
393 javacflags: [
394 "-Xep:EmptyTopLevelDeclaration:WARN",
395 "-Xep:GetClassOnAnnotation:WARN",
396 "-Xep:NullableOnContainingClass:WARN",
397 ],
398 },
Colin Crossaf0b54c2017-09-27 17:22:32 -0700399}
400
Paul Duffin816daae2021-04-19 17:19:56 +0100401// Java library for use on host, e.g. by robolectric or layoutlib.
402java_library {
403 name: "core-libart-for-host",
404 visibility: [
405 "//art/build/sdk",
Rex Hoffman2e79b4c2022-08-25 23:22:23 +0000406 "//external/robolectric",
Paul Duffin816daae2021-04-19 17:19:56 +0100407 "//external/robolectric-shadows",
Jeff Sharkey99f98c72024-01-11 20:23:14 +0000408 "//frameworks/base",
Paul Duffin816daae2021-04-19 17:19:56 +0100409 "//frameworks/layoutlib",
410 ],
411 static_libs: [
412 "core-libart",
413 ],
414 sdk_version: "none",
415 system_modules: "none",
416}
417
Paul Duffin7bb8d232018-10-23 11:48:38 +0100418// Provided solely to contribute information about which hidden parts of the
419// core-oj API are used by apps.
Paul Duffinc6bf27b2019-05-15 14:41:00 +0100420//
Paul Duffinc6bf27b2019-05-15 14:41:00 +0100421// Usually, e.g. for core-libart, the UnsupportedAppUsage annotations are
422// added to the source that is compiled directly into the bootjar and the build
423// system extracts the information about UnsupportedAppUsage directly from
424// there.
425//
426// This approach of having separate annotated source and a separate build
427// target was taken for ojluni to avoid having to maintain local patches in the
428// ojluni source for UnsupportedAppUsage annotations as that would make it more
429// difficult to pull down changes from upstream.
430//
Paul Duffin7bb8d232018-10-23 11:48:38 +0100431java_library {
Paul Duffinb51fc6f2021-01-26 14:59:17 +0000432 name: "core-oj-hiddenapi-annotations",
Paul Duffin48ac7b62019-03-28 14:28:06 +0000433 // Do not allow this to be accessed from outside this directory.
Orion Hodson9e54acd2022-10-27 12:55:56 +0100434 visibility: ["//libcore:__subpackages__"],
Paul Duffin7bb8d232018-10-23 11:48:38 +0100435 defaults: ["libcore_java_defaults"],
436 compile_dex: true,
437
438 srcs: [":openjdk_hiddenapi_javadoc_files"],
439
Paul Duffin83c25382019-06-07 14:10:49 +0100440 sdk_version: "none",
Paul Duffin7bb8d232018-10-23 11:48:38 +0100441 system_modules: "core-all-system-modules",
Paul Duffin1d7d4a72019-10-10 18:15:01 +0100442 patch_module: "java.base",
Artur Satayeva09cba02020-02-19 16:43:32 +0000443 plugins: ["unsupportedappusage-annotation-processor"],
Cole Faustc06793a22022-10-15 21:33:32 -0700444
445 errorprone: {
446 javacflags: [
447 "-Xep:ComparableType:WARN",
448 ],
449 },
Paul Duffin7bb8d232018-10-23 11:48:38 +0100450}
451
Tobias Thierere0f8b312018-10-23 23:12:30 +0100452java_defaults {
453 name: "core_lambda_stubs_defaults",
Colin Crossaf0b54c2017-09-27 17:22:32 -0700454 defaults: ["libcore_java_defaults"],
Neil Fuller4207c7f2018-10-10 14:01:40 +0100455 hostdex: true,
Colin Crossaf0b54c2017-09-27 17:22:32 -0700456
Paul Duffin83c25382019-06-07 14:10:49 +0100457 sdk_version: "none",
Colin Crossa4d9fc42017-09-29 18:04:37 -0700458 system_modules: "core-all-system-modules",
Paul Duffin1d7d4a72019-10-10 18:15:01 +0100459 patch_module: "java.base",
Colin Crossaf0b54c2017-09-27 17:22:32 -0700460
Colin Crossaf0b54c2017-09-27 17:22:32 -0700461 installable: false,
462 include_srcs: true,
463}
Colin Crossa4d9fc42017-09-29 18:04:37 -0700464
Tobias Thierere0f8b312018-10-23 23:12:30 +0100465// Creates a jar that exists to satisfy javac when compiling source code that
466// contains lambdas. This contains all classes / methods required by javac
467// when generating invoke-dynamic lambda implementation code, even those that
468// are also in the public SDK API from API level 26 onwards.
469java_library {
470 name: "core-lambda-stubs",
Jihoon Kang9188d1a2023-06-14 23:03:38 +0000471 visibility: [
Jihoon Kang4f6d56d2023-11-01 22:42:46 +0000472 "//visibility:public",
Jihoon Kang9188d1a2023-06-14 23:03:38 +0000473 ],
474 defaults: ["core_lambda_stubs_defaults"],
Tobias Thierere0f8b312018-10-23 23:12:30 +0100475 srcs: [
476 ":openjdk_lambda_stub_files",
477 ":openjdk_lambda_duplicate_stub_files",
478 ],
Colin Crossdafdf702020-07-30 11:30:11 -0700479 // This jar is packaged as part of the SDK, use -target 8 so that it works
480 // with old JDKs.
481 java_version: "1.8",
Tobias Thierere0f8b312018-10-23 23:12:30 +0100482}
483
484// An alternative to core-lambda-stubs that omits openjdk_lambda_duplicate_stub_files
485// because those classes are also part of the core library public SDK API
486// (since API level 26).
487java_library {
488 name: "core-lambda-stubs-for-system-modules",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100489 visibility: [
Paul Duffin882c7ba2021-07-10 23:28:13 +0100490 "//art/build/sdk",
491 "//build/soong/java/core-libraries",
Colin Cross46beebf2022-11-10 14:21:06 -0800492 "//frameworks/base",
Anton Hansson8c5fd9b2023-03-03 17:29:24 +0000493 "//frameworks/base/api",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100494 ],
Tobias Thierere0f8b312018-10-23 23:12:30 +0100495 defaults: ["core_lambda_stubs_defaults"],
496 srcs: [
497 ":openjdk_lambda_stub_files",
498 ],
Colin Crossdc663342020-04-17 18:16:31 -0700499 include_srcs: true,
Sorin Basca1656ca52023-05-16 15:24:53 +0100500 // This jar is packaged as part of the SDK, use -target 8 so that it works
501 // with old JDKs.
502 java_version: "1.8",
Tobias Thierere0f8b312018-10-23 23:12:30 +0100503}
504
Spandan Das711652d2022-12-28 22:24:40 +0000505// This is an empty jar that exists for backwards compatibility with T (and below).
506// Historically, it existed to satisfy javac when compiling source code that
507// contains @Generated annotations.
508// This is no longer necessary since @Generated was added to ART's Public API
509// surface in U.
Pete Gillin54035812019-05-08 15:09:39 +0100510java_library {
511 name: "core-generated-annotation-stubs",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100512 visibility: [
Paul Duffin882c7ba2021-07-10 23:28:13 +0100513 "//art/build/sdk",
514 "//build/soong/java/core-libraries",
Colin Cross46beebf2022-11-10 14:21:06 -0800515 "//frameworks/base",
Anton Hansson8c5fd9b2023-03-03 17:29:24 +0000516 "//frameworks/base/api",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100517 ],
Pete Gillin54035812019-05-08 15:09:39 +0100518 defaults: ["libcore_java_defaults"],
519 srcs: [
Pete Gillin54035812019-05-08 15:09:39 +0100520 ],
521 hostdex: true,
Paul Duffin83c25382019-06-07 14:10:49 +0100522 sdk_version: "none",
Pete Gillin54035812019-05-08 15:09:39 +0100523 system_modules: "core-all-system-modules",
Paul Duffin1d7d4a72019-10-10 18:15:01 +0100524 patch_module: "java.base",
Pete Gillin54035812019-05-08 15:09:39 +0100525 installable: false,
526 include_srcs: true,
Sorin Bascac90e1e72023-06-02 11:13:31 +0000527 // This jar is packaged as part of the SDK, use -target 8 so that it works
528 // with old JDKs.
529 java_version: "1.8",
Pete Gillin54035812019-05-08 15:09:39 +0100530}
531
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100532// Builds libcore test rules
Colin Cross3c6c2e22017-10-18 13:24:52 -0700533java_library_static {
534 name: "core-test-rules",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100535 visibility: [
Paul Duffin86abe9e2020-01-16 16:55:36 +0000536 "//art/build/sdk",
Victor Chang31e0d0d2023-06-16 16:17:34 +0100537 "//cts/tests/core/runner-axt",
Baligh Uddine7098da2020-12-23 18:17:44 +0000538 "//cts/tests/tests/util",
Paul Duffin01f6c022019-09-24 14:44:15 +0100539 "//external/conscrypt",
Daulet Zhanguzinc6789a32020-03-19 20:30:59 +0000540 "//external/conscrypt/apex/tests",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100541 "//frameworks/base/location/tests/locationtests",
David Su76713fc2019-12-06 16:33:09 -0800542 "//frameworks/base/core/tests/coretests",
David Su5355a772019-12-18 16:11:17 -0800543 "//frameworks/base/wifi/tests",
Victor Chang31e0d0d2023-06-16 16:17:34 +0100544 "//libcore/ojluni/src/test",
Sorin Basca676774c2022-01-17 13:35:42 +0000545 "//libcore/luni/src/test/java9compatibility",
Baligh Uddine7098da2020-12-23 18:17:44 +0000546 "//packages/modules/Wifi/framework/tests",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100547 ],
Colin Cross3c6c2e22017-10-18 13:24:52 -0700548 hostdex: true,
Colin Cross3c6c2e22017-10-18 13:24:52 -0700549 srcs: [
550 "dalvik/test-rules/src/main/**/*.java",
551 "test-rules/src/main/**/*.java",
552 ],
Victor Chang31e0d0d2023-06-16 16:17:34 +0100553 static_libs: [
554 "junit",
555 "platform-test-annotations",
556 ],
Neil Fuller4207c7f2018-10-10 14:01:40 +0100557
Paul Duffin83c25382019-06-07 14:10:49 +0100558 sdk_version: "none",
Neil Fuller4207c7f2018-10-10 14:01:40 +0100559 system_modules: "core-all-system-modules",
Colin Cross3c6c2e22017-10-18 13:24:52 -0700560}
561
Andrei Oneae4392252019-09-03 11:54:14 +0100562// Builds platform_compat test rules
563java_library_static {
Andrei Onea2829b542019-11-18 14:24:53 +0000564 name: "core-compat-test-rules",
565 visibility: [
Paul Duffin86abe9e2020-01-16 16:55:36 +0000566 "//art/build/sdk",
Andrei Onea2829b542019-11-18 14:24:53 +0000567 "//frameworks/base/tests/PlatformCompatGating/test-rules",
568 ],
Andrei Oneae4392252019-09-03 11:54:14 +0100569 srcs: [
570 "luni/src/main/java/android/compat/**/*.java",
571 "test-rules/src/platform_compat/**/*.java",
572 "luni/src/main/java/libcore/api/CorePlatformApi.java",
573 "luni/src/main/java/libcore/api/IntraCoreApi.java",
Andrei Oneae4392252019-09-03 11:54:14 +0100574 ],
575 static_libs: [
576 "junit",
577 "guava",
Andrei Oneae4392252019-09-03 11:54:14 +0100578 ],
Andrei Onea2829b542019-11-18 14:24:53 +0000579 sdk_version: "none",
580 system_modules: "core-all-system-modules",
Pete Gillin7fb42bb2019-10-14 11:36:45 +0100581 // This builds classes that are in the java.base Java module:
582 patch_module: "java.base",
Andrei Onea2829b542019-11-18 14:24:53 +0000583 hostdex: true,
Cole Faustc06793a22022-10-15 21:33:32 -0700584
585 errorprone: {
586 javacflags: [
587 "-Xep:EmptyTopLevelDeclaration:WARN",
588 "-Xep:GetClassOnAnnotation:WARN",
589 ],
590 },
Andrei Oneae4392252019-09-03 11:54:14 +0100591}
592
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100593// Builds the core-tests-support library used by various tests.
Colin Cross3c6c2e22017-10-18 13:24:52 -0700594java_library_static {
595 name: "core-tests-support",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100596 visibility: [
Paul Duffin86abe9e2020-01-16 16:55:36 +0000597 "//art/build/sdk",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100598 "//cts/apps/CtsVerifier",
599 "//cts/tests/tests/keystore",
600 "//cts/tests/tests/net",
Miguel4d6bbd32022-05-10 16:59:50 +0000601 "//cts/hostsidetests/statsdatom/apps/statsdapp",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100602 "//cts/tests/tests/net/api23Test",
603 "//external/apache-harmony",
604 "//frameworks/base/core/tests/coretests",
Miguelc5467c32022-06-10 11:49:11 +0000605 "//frameworks/base/apct-tests/perftests/core",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100606 "//libcore/benchmarks",
607 "//packages/apps/KeyChain/tests",
608 "//system/timezone/distro/core",
Remi NGUYEN VANff86d7b2021-06-08 10:22:57 +0900609 "//packages/modules/Connectivity/tests:__subpackages__",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100610 ],
Colin Cross3c6c2e22017-10-18 13:24:52 -0700611 hostdex: true,
Colin Cross3c6c2e22017-10-18 13:24:52 -0700612 srcs: ["support/src/test/java/**/*.java"],
Neil Fuller4207c7f2018-10-10 14:01:40 +0100613
Paul Duffin53c491f2019-06-12 13:48:14 +0100614 sdk_version: "core_platform",
Paul Duffin602d2f42022-08-23 12:57:15 +0000615 // Make sure that this will be added to the sdk snapshot for S.
616 min_sdk_version: "S",
Neil Fuller4380ab22018-10-18 19:38:53 +0100617 libs: ["junit"],
Colin Cross3c6c2e22017-10-18 13:24:52 -0700618 static_libs: [
Neil Fullerde8b0862018-10-12 21:53:31 +0100619 "bouncycastle-unbundled",
620 "bouncycastle-bcpkix-unbundled",
621 "bouncycastle-ocsp-unbundled",
Colin Cross3c6c2e22017-10-18 13:24:52 -0700622 ],
Cole Faustc06793a22022-10-15 21:33:32 -0700623 errorprone: {
624 javacflags: [
625 "-Xep:BoxedPrimitiveEquality:WARN",
626 ],
627 },
Colin Cross3c6c2e22017-10-18 13:24:52 -0700628}
629
Victor Chang6efc82c2022-07-29 16:49:17 +0100630// Used to generate the prebuilt file luni/src/test/resources/prebuilt-dex-from-java.dex.
631// The reason why we pre-build this dex file is to stabilize the test result from the
632// dexer / javac / other toolchains change.
633// Regenerate the prebuilt file with the following command:
634// m core-tests-prebuilt-dex-from-java &&
635// unzip out/soong/.intermediates/libcore/core-tests-prebuilt-dex-from-java/android_common/dex/core-tests-prebuilt-dex-from-java.jar classes.dex \
636// -d libcore/luni/src/test/resources/ && mv libcore/luni/src/test/resources/classes.dex libcore/luni/src/test/resources/prebuilt-dex-from-java.dex
637java_test {
638 name: "core-tests-prebuilt-dex-from-java",
639 srcs: ["luni/src/test/dex_src/**/*.java"],
640 compile_dex: true,
641 defaults: ["libcore_java_defaults"],
642 sdk_version: "none",
643 system_modules: "core-all-system-modules",
644
645 visibility: [
646 "//libcore:__subpackages__",
647 ],
648}
649
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100650// Builds the jsr166-tests library.
Colin Crossec80f4f2018-08-15 21:17:11 -0700651java_test {
Colin Cross3c6c2e22017-10-18 13:24:52 -0700652 name: "jsr166-tests",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100653 visibility: [
Paul Duffin8d01a552020-03-25 12:02:54 +0000654 "//art/build/sdk",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100655 "//cts/tests/libcore/jsr166",
656 ],
Colin Cross3c6c2e22017-10-18 13:24:52 -0700657 srcs: ["jsr166-tests/src/test/java/**/*.java"],
Paul Duffin83c25382019-06-07 14:10:49 +0100658 sdk_version: "none",
Paul Duffin0e0f8c42019-09-20 14:49:55 +0100659 system_modules: "core-all-system-modules",
Colin Cross3c6c2e22017-10-18 13:24:52 -0700660 libs: [
661 "junit",
662 ],
Cole Faust18d939a2021-11-23 11:37:22 -0800663 errorprone: {
664 javacflags: [
665 "-Xep:DoNotCall:OFF",
Cole Faustc06793a22022-10-15 21:33:32 -0700666 "-Xep:ModifyingCollectionWithItself:WARN",
667 "-Xep:ReturnValueIgnored:WARN",
668 "-Xep:HashtableContains:WARN",
Cole Faust18d939a2021-11-23 11:37:22 -0800669 ],
670 },
Colin Cross3c6c2e22017-10-18 13:24:52 -0700671}
Nan Zhang65f27a32018-01-05 10:41:46 -0800672
Pete Gillinec902b82019-06-26 17:23:00 +0100673// A filegroup that provides access to a source file for a toolchain test that
674// checks Java 9 language features are handled properly by JarJar.
675filegroup {
676 name: "core-java-9-language-features-source",
677 srcs: ["luni/src/main/java/libcore/internal/Java9LanguageFeatures.java"],
678 visibility: ["//libcore/luni/src/test/java9language"],
679}
680
Sorin Basca29de0a82021-12-01 14:03:45 +0000681// A filegroup that provides access to a source file for a toolchain test that
682// checks Java 11 language features are handled properly by JarJar.
683filegroup {
684 name: "core-java-11-language-features-source",
685 srcs: ["luni/src/main/java/libcore/internal/Java11LanguageFeatures.java"],
686 visibility: ["//libcore/luni/src/test/java11language"],
687}
688
Sorin Bascae4383a42022-05-27 11:53:43 +0100689// A filegroup that provides access to a source file for a toolchain test that
690// checks Java 17 language features are handled properly by JarJar.
691filegroup {
692 name: "core-java-17-language-features-source",
693 srcs: ["luni/src/main/java/libcore/internal/Java17LanguageFeatures.java"],
694 visibility: ["//libcore/luni/src/test/java17language"],
695}
696
Dan Zimmermanc2bd7fd2019-12-17 08:15:44 -0800697genrule {
698 name: "core-tests-smali-dex",
699 srcs: ["luni/src/test/java/**/*.smali"],
David Srbeckybfc626f2023-12-06 16:31:29 +0000700 cmd: "$(location android-smali) ass --api 28 -o $(out) $(in)",
Dan Zimmermanc2bd7fd2019-12-17 08:15:44 -0800701 out: ["core-tests-smali.dex"],
David Srbeckybfc626f2023-12-06 16:31:29 +0000702 tools: ["android-smali"],
Dan Zimmermanc2bd7fd2019-12-17 08:15:44 -0800703}
704
Orion Hodson720a8d32022-10-27 08:06:09 +0000705filegroup {
706 name: "core-ojtests-javax-resources",
707 // Set path to keep the resources and .class files in the same directory in the jar file.
708 path: "ojluni/src",
709 srcs: ["ojluni/src/test/javax/**/*"],
710 exclude_srcs: ["ojluni/src/test/javax/**/*.java"],
711}
712
713filegroup {
714 name: "core-ojtests-java-resources",
715 // Set path to keep the resources and .class files in the same directory in the jar file.
716 path: "ojluni/src",
717 srcs: [
718 "ojluni/src/test/java/util/regex/**/*",
719 "ojluni/src/test/java/util/Base64/**/*",
Almaz Mingaleev34a59392022-11-29 14:42:16 +0000720 "ojluni/src/test/java/util/Scanner/**/*",
Almaz Mingaleev94cee7b2023-10-27 16:36:46 +0100721 "ojluni/src/test/java/util/Properties/**/*",
Orion Hodson720a8d32022-10-27 08:06:09 +0000722 ],
723 exclude_srcs: ["ojluni/src/test/java/**/*.java"],
724}
725
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100726// Builds the core-tests library.
Colin Crossec80f4f2018-08-15 21:17:11 -0700727java_test {
728 name: "core-tests",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100729 visibility: [
Paul Duffin8d01a552020-03-25 12:02:54 +0000730 "//art/build/sdk",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100731 "//cts/tests/libcore/luni",
732 ],
Colin Crossec80f4f2018-08-15 21:17:11 -0700733 defaults: ["libcore_java_defaults"],
734 hostdex: true,
735 srcs: [
736 "dalvik/src/test/java/**/*.java",
737 "dalvik/test-rules/src/test/java/**/*.java",
738 "dom/src/test/java/**/*.java",
739 "harmony-tests/src/test/java/**/*.java",
740 "json/src/test/java/**/*.java",
741 "luni/src/test/java/**/*.java",
Paul Duffin4ba14532019-03-21 10:32:41 +0000742 "test-rules/src/test/java/**/*.java",
Colin Crossec80f4f2018-08-15 21:17:11 -0700743 "xml/src/test/java/**/*.java",
744 ],
745 exclude_srcs: [
Daulet Zhanguzina923aa32020-04-03 17:31:30 +0100746 "harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/*.java",
Colin Crossec80f4f2018-08-15 21:17:11 -0700747 "luni/src/test/java/libcore/java/util/zip/Zip64Test.java",
748 "luni/src/test/java/libcore/java/util/zip/Zip64FileTest.java",
Daulet Zhanguzin8f6ec372020-03-30 20:55:29 +0100749 "luni/src/test/java/libcore/javax/crypto/**/*.java",
Daulet Zhanguzina923aa32020-04-03 17:31:30 +0100750 "luni/src/test/java/libcore/javax/net/ssl/**/*.java",
Daulet Zhanguzin8f6ec372020-03-30 20:55:29 +0100751 "luni/src/test/java/org/apache/harmony/crypto/**/*.java",
Colin Crossec80f4f2018-08-15 21:17:11 -0700752 ],
753
754 java_resource_dirs: [
755 "*/src/test/java",
756 "*/src/test/resources",
757 ],
758 exclude_java_resource_dirs: [
759 "ojluni/src/test/java",
Victor Chang23102e42021-02-24 15:28:35 +0000760 "ojluni/src/test/javax",
Colin Crossec80f4f2018-08-15 21:17:11 -0700761 "ojluni/src/test/resources",
762 ],
763
764 java_resources: [
Paul Duffin16a057f2019-05-13 12:20:55 +0100765 ":annotations-test",
Colin Crossec80f4f2018-08-15 21:17:11 -0700766 ":filesystemstest",
767 ":parameter-metadata-test",
Dan Zimmermanc2bd7fd2019-12-17 08:15:44 -0800768 ":core-tests-smali-dex",
Colin Crossec80f4f2018-08-15 21:17:11 -0700769 ],
770
Paul Duffin83c25382019-06-07 14:10:49 +0100771 sdk_version: "none",
Paul Duffin0e0f8c42019-09-20 14:49:55 +0100772 system_modules: "core-all-system-modules",
Neil Fuller4207c7f2018-10-10 14:01:40 +0100773 libs: [
Neil Fuller4207c7f2018-10-10 14:01:40 +0100774 "okhttp",
775 "bouncycastle",
776 ],
Neil Fuller4207c7f2018-10-10 14:01:40 +0100777
Colin Crossec80f4f2018-08-15 21:17:11 -0700778 static_libs: [
Victor Chang91465f32023-07-01 01:07:31 +0100779 "apache-xml-tests",
Andrei Onea2829b542019-11-18 14:24:53 +0000780 "core-compat-test-rules",
Sorin Basca676774c2022-01-17 13:35:42 +0000781 "core-java-9-compatibility-tests",
Pete Gillin05a43202019-06-27 14:41:21 +0100782 "core-java-9-language-tests",
Sorin Basca29de0a82021-12-01 14:03:45 +0000783 "core-java-11-language-tests",
Sorin Bascae4383a42022-05-27 11:53:43 +0100784 "core-java-17-language-tests",
Colin Crossec80f4f2018-08-15 21:17:11 -0700785 "core-test-rules",
786 "core-tests-support",
787 "junit-params",
Daulet Zhanguzin8f6ec372020-03-30 20:55:29 +0100788 "libcore-crypto-tests",
Colin Crossec80f4f2018-08-15 21:17:11 -0700789 "mockftpserver",
790 "mockito-target",
791 "mockwebserver",
792 "nist-pkix-tests",
793 "slf4j-jdk14",
794 "sqlite-jdbc",
Colin Crossec80f4f2018-08-15 21:17:11 -0700795 ],
796
797 errorprone: {
798 javacflags: [
799 "-Xep:TryFailThrowable:ERROR",
800 "-Xep:ComparisonOutOfRange:ERROR",
Cole Faustd4b4cf72021-11-24 14:47:10 -0800801 "-Xep:DoNotCall:OFF",
Cole Fauste90ec462022-08-15 15:03:06 -0700802 "-Xep:ArrayToString:WARN",
Cole Faustc06793a22022-10-15 21:33:32 -0700803 "-Xep:SelfEquals:WARN",
804 "-Xep:SelfComparison:WARN",
805 "-Xep:ReturnValueIgnored:WARN",
806 "-Xep:BoxedPrimitiveEquality:WARN",
807 "-Xep:SizeGreaterThanOrEqualsZero:WARN",
808 "-Xep:MisusedDayOfYear:WARN",
809 "-Xep:InvalidTimeZoneID:WARN",
810 "-Xep:CollectionToArraySafeParameter:WARN",
811 "-Xep:ModifyingCollectionWithItself:WARN",
812 "-Xep:ComparableType:WARN",
813 "-Xep:UnusedCollectionModifiedInPlace:WARN",
814 "-Xep:HashtableContains:WARN",
815 "-Xep:DoubleBraceInitialization:WARN",
816 "-Xep:RandomModInteger:WARN",
817 "-Xep:IdentityBinaryExpression:WARN",
Cole Faust5e00c0e2023-11-14 17:24:13 -0800818 "-Xep:UnnecessaryStringBuilder:OFF", // https://github.com/google/error-prone/issues/4195
819 "-Xep:InvalidPatternSyntax:WARN",
Colin Crossec80f4f2018-08-15 21:17:11 -0700820 ],
821 },
Simran Basi3be01e02018-08-21 17:53:49 -0700822
823 test_config: "AndroidTest-core-tests.xml",
Colin Crossec80f4f2018-08-15 21:17:11 -0700824}
825
Daulet Zhanguzin8f6ec372020-03-30 20:55:29 +0100826java_test {
827 name: "libcore-crypto-tests",
828
829 visibility: [
830 "//art/build/sdk",
831 "//external/conscrypt/apex/tests",
832 ],
Miguel Aranda79eebf62023-10-25 11:47:03 +0000833 exclude_srcs: [
834 "luni/src/test/java/libcore/javax/crypto/CipherTest.java",
835 ],
Daulet Zhanguzin8f6ec372020-03-30 20:55:29 +0100836 srcs: [
Daulet Zhanguzina923aa32020-04-03 17:31:30 +0100837 "harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/*.java",
Daulet Zhanguzin8f6ec372020-03-30 20:55:29 +0100838 "luni/src/test/java/libcore/javax/crypto/**/*.java",
Daulet Zhanguzina923aa32020-04-03 17:31:30 +0100839 "luni/src/test/java/libcore/javax/net/ssl/**/*.java",
Almaz Mingaleev465ea8d2021-05-18 16:42:18 +0100840 "luni/src/test/java/libcore/libcore/util/SerializationTester.java",
Miguel49d4f332022-02-16 11:10:24 +0000841 "luni/src/test/java/libcore/sun/security/**/*.java",
Daulet Zhanguzin8f6ec372020-03-30 20:55:29 +0100842 "luni/src/test/java/org/apache/harmony/crypto/**/*.java",
843 ],
Daulet Zhanguzin8f6ec372020-03-30 20:55:29 +0100844
845 java_resource_dirs: [
846 "luni/src/test/java",
847 "luni/src/test/resources",
848 "support/src/test/java",
849 ],
850
851 sdk_version: "none",
852 system_modules: "core-all-system-modules",
853
854 static_libs: [
855 "core-test-rules",
856 "core-tests-support",
857 "junit-params",
858 "mockito-target",
859 ],
Cole Fauste90ec462022-08-15 15:03:06 -0700860
861 errorprone: {
862 javacflags: [
863 "-Xep:ArrayToString:WARN",
Cole Faustc06793a22022-10-15 21:33:32 -0700864 "-Xep:ReturnValueIgnored:WARN",
Cole Fauste90ec462022-08-15 15:03:06 -0700865 ],
866 },
Daulet Zhanguzin8f6ec372020-03-30 20:55:29 +0100867}
868
Victor Chang59ea0c32023-09-12 15:56:13 +0100869java_genrule {
870 name: "libcore-non-cts-tests-txt",
871 host_supported: true,
872 srcs: [
Cole Faust406bd522023-11-30 12:29:31 -0800873 ":apache-harmony-tests{.jar}",
874 ":conscrypt-tests{.jar}",
875 ":core-tests{.jar}",
876 ":core-ojtests{.jar}",
Victor Chang59ea0c32023-09-12 15:56:13 +0100877 ],
878 tools: ["non-cts-json-generator"],
879 out: ["libcore-non-cts-tests.txt"],
Cole Faust406bd522023-11-30 12:29:31 -0800880 cmd: "$(location non-cts-json-generator) $(in) > $(out)",
Victor Chang59ea0c32023-09-12 15:56:13 +0100881}
882
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100883// Exports annotated stubs source files in ojluni/annotations/sdk to make them
884// available to metalava. Used for nullability annotations in OpenJDK source.
Pete Gillin7db7faa2018-07-31 13:29:35 +0100885droiddoc_exported_dir {
Pete Gillin0728b742018-09-17 15:41:45 +0100886 name: "ojluni-annotated-sdk-stubs",
Paul Duffin9b6ba592021-04-07 16:53:30 +0100887 visibility: [
888 "//libcore:__subpackages__",
889 ],
Pete Gillin0728b742018-09-17 15:41:45 +0100890 path: "ojluni/annotations/sdk",
Pete Gillin7db7faa2018-07-31 13:29:35 +0100891}
Paul Duffin48ac7b62019-03-28 14:28:06 +0000892
Pete Gillin600c7cf2018-08-16 19:28:38 +0100893droiddoc_exported_dir {
894 name: "ojluni-annotated-nullability-stubs",
895 path: "ojluni/annotations/sdk/nullability",
896}
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100897
898// Exports annotated stubs source files in ojluni/annotations/mmodules to make
Paul Duffinc241d6a2019-06-25 15:40:29 +0100899// them available to metalava. Used for core platform API and intra-core API
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100900// annotations in OpenJDK source.
Pete Gillinc9935b62018-09-25 14:42:40 +0100901droiddoc_exported_dir {
902 name: "ojluni-annotated-mmodule-stubs",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100903 visibility: [
Paul Duffinc241d6a2019-06-25 15:40:29 +0100904 "//libcore/mmodules/intracoreapi",
905 ],
Pete Gillinc9935b62018-09-25 14:42:40 +0100906 path: "ojluni/annotations/mmodule",
907}
Pete Gillin7db7faa2018-07-31 13:29:35 +0100908
Victor Chang92f77ce2023-12-13 16:01:07 +0000909droiddoc_exported_dir {
910 name: "ojluni-annotated-flagged-stubs",
911 path: "ojluni/annotations/flagged_api",
912 visibility: ["//visibility:private"],
913}
914
Neil Fuller6f16b462018-09-04 15:40:39 +0100915// A file containing the list of tags that are "known" to us from the OpenJdk
916// source code and so should not cause an error or warning.
Nan Zhangd55722b2018-02-27 15:08:20 -0800917filegroup {
918 name: "known-oj-tags",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100919 visibility: [
920 "//frameworks/base",
Anton Hansson8c5fd9b2023-03-03 17:29:24 +0000921 "//frameworks/base/api",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100922 ],
Nan Zhangd55722b2018-02-27 15:08:20 -0800923 srcs: [
924 "known_oj_tags.txt",
925 ],
926}
Nan Zhang602fc0e2018-03-22 16:14:22 -0700927
Paul Duffin5cd69e42019-10-11 17:12:23 +0100928// A special set of stubs containing the minimal set of self consistent
929// classes for which a system module can be created. Every system module must
930// contain the java.lang classes so the set was constructed by starting with
931// the java.lang classes and then adding their transitive dependencies without
932// splitting packages. So, if one class from a package is used then all classes
933// in that package were added to the set.
934//
935// Needed for java-current-stubs-system-modules.
936droidstubs {
937 name: "java-current-stubs-source",
938 srcs: [
939 ":core_oj_api_files",
940 ":core_libart_api_files",
941 ],
Paul Duffin5cd69e42019-10-11 17:12:23 +0100942 installable: false,
943 sdk_version: "none",
944 system_modules: "none",
945
946 args: "--stub-packages java.*:javax.*:org.w3c.dom.*:org.xml.sax.*",
947}
948
Victor Changa0b264b2023-12-28 16:56:25 +0000949// Generates stub files for the classes exposed in the public API, without
950// javadoc. This can be used as a starting point for adding a new file to
951// libcore/luni/annotations/flagged_api.
952droidstubs {
953 name: "libart-sdk-stubs-no-javadoc",
954 srcs: [":core_libart_api_files"],
955 installable: false,
956 sdk_version: "none",
957 system_modules: "none",
958 args: "--exclude-documentation-from-stubs",
959}
960
961// Separate @FlaggedApi annotations for luni/ to avoid a circular dependency between
962// libcore_aconfig_flags_lib and core-all
963droiddoc_exported_dir {
964 name: "luni-annotated-flagged-stubs",
965 path: "luni/annotations/flagged_api",
966 visibility: ["//visibility:private"],
967}
968
Paul Duffin5cd69e42019-10-11 17:12:23 +0100969java_library {
970 name: "java.current.stubs",
971 srcs: [":java-current-stubs-source"],
972 errorprone: {
973 javacflags: [
974 "-Xep:MissingOverride:OFF",
975 ],
976 },
977 patch_module: "java.base",
978 sdk_version: "none",
979 system_modules: "none",
980}
981
Paul Duffinc9abfe92020-09-10 10:48:09 +0100982// A special set of system modules needed to build art.module.public.api
Paul Duffin5cd69e42019-10-11 17:12:23 +0100983java_system_modules {
984 name: "java-current-stubs-system-modules",
985 libs: [
986 // Minimal set of classes required for a system module.
987 "java.current.stubs",
Paul Duffin5cd69e42019-10-11 17:12:23 +0100988 ],
989}
990
Victor Chang0cd67fb2021-05-12 10:35:00 +0100991java_library {
992 name: "framework-api-annotations-lib",
993 srcs: [":framework-api-annotations"],
994 sdk_version: "none",
995 patch_module: "java.base",
996 system_modules: "core-all-system-modules",
997 installable: false,
998 visibility: [
999 "//visibility:private",
1000 ],
1001}
1002
Victor Chang28f71fa2023-12-08 16:30:07 +00001003aconfig_declarations {
1004 name: "libcore_aconfig_flags",
1005 package: "com.android.libcore",
Oriol Prieto Gascod48ec992024-02-05 14:54:56 +00001006 container: "system",
Victor Chang28f71fa2023-12-08 16:30:07 +00001007 srcs: ["libcore.aconfig"],
1008}
1009
1010java_aconfig_library {
1011 name: "libcore_aconfig_flags_lib",
1012 aconfig_declarations: "libcore_aconfig_flags",
1013 sdk_version: "none",
1014 patch_module: "java.base",
1015 system_modules: "core-all-system-modules",
1016 apex_available: [
1017 "com.android.art",
1018 // Remove :platform until we allow platform codes to use libcore's @FlaggedApi APIs
1019 // "//apex_available:platform",
1020 ],
1021 visibility: [
1022 "//visibility:private",
1023 ],
1024}
1025
Paul Duffinc9abfe92020-09-10 10:48:09 +01001026// Define the public SDK API provided by the ART module.
1027java_sdk_library {
1028 name: "art.module.public.api",
Paul Duffin93f2f6c2020-03-26 15:31:24 +00001029 visibility: [
Paul Duffin8d01a552020-03-25 12:02:54 +00001030 "//art/build/sdk",
Paul Duffin882c7ba2021-07-10 23:28:13 +01001031 "//build/soong/java/core-libraries",
Paul Duffin93f2f6c2020-03-26 15:31:24 +00001032 "//frameworks/base",
Anton Hanssonaba92c72020-12-17 17:00:01 +00001033 "//frameworks/base/api",
Paul Duffin8a1867f2022-07-15 09:18:09 +00001034
1035 // DO NOT REMOVE: Legacy visibility, needed for snapshots that are
1036 // generated for the S build.
1037 "//libcore/mmodules/core_platform_api",
Paul Duffin93f2f6c2020-03-26 15:31:24 +00001038 ],
Paul Duffin53690cb2019-09-19 15:11:28 +01001039 srcs: [
Paul Duffina8bb6062019-09-25 15:50:13 +01001040 ":core_oj_api_files",
1041 ":core_libart_api_files",
Victor Chang82f70f42021-05-27 12:30:53 +01001042
1043 // Some source files in :core_oj_api_files and :openjdk_mmodule_extra_files are
1044 // annotated by applying annotations to the .annotated.java stubs files in
1045 // ojluni/annotated/mmodules and rather than in the original source. See the comments
1046 // in openjdk_java_files.bp for more details.
1047 ":openjdk_mmodule_extra_files",
Victor Change965ca12021-06-23 17:39:18 +01001048 ":okhttp_api_files",
Paul Duffin53690cb2019-09-19 15:11:28 +01001049 ],
Paul Duffin48363742023-11-15 13:05:28 +00001050 api_srcs: [
1051 ":openjdk_javadoc_only_files",
1052 ],
Paul Duffinfe5f63c2019-10-11 09:53:11 +01001053 libs: [
Victor Chang0cd67fb2021-05-12 10:35:00 +01001054 // Put framework-api-annotations into libs to avoid exposing the definition of framework's
1055 // annotations from libcore (wrong place) instead of framework (correct place).
1056 "framework-api-annotations-lib",
Paul Duffinfe5f63c2019-10-11 09:53:11 +01001057 // Provide access to I18N constants that are used to initialize
1058 // constants in the public API. i.e. to allow the value of the
1059 // java.text.CollectionElementIterator.NULLORDER to be initialized from
1060 // android.icu.text.CollationElementIterator.NULLORDER.
1061 "i18n.module.intra.core.api.stubs",
Victor Chang28f71fa2023-12-08 16:30:07 +00001062 "libcore_aconfig_flags_lib",
Paul Duffinfe5f63c2019-10-11 09:53:11 +01001063 ],
Anton Hansson8a1d0f62021-04-21 16:33:35 +01001064 stub_only_static_libs: ["notices-for-stubs-jar"],
Paul Duffin5cd69e42019-10-11 17:12:23 +01001065
Paul Duffin8a2f9ab2021-04-16 18:52:01 +01001066 // Make dex jars for the stubs available for use by hiddenapi processing.
1067 compile_dex: true,
1068
Paul Duffinc9abfe92020-09-10 10:48:09 +01001069 public: {
1070 enabled: true,
1071 },
Victor Chang0cd67fb2021-05-12 10:35:00 +01001072 system: {
1073 enabled: true,
1074 },
1075 module_lib: {
1076 enabled: true,
1077 },
Paul Duffin3f028ca2019-11-11 20:17:28 +00001078
Paul Duffinc9abfe92020-09-10 10:48:09 +01001079 api_only: true,
1080 droiddoc_options: [
Anton Hanssonb630de82020-12-22 11:25:54 +00001081 "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* ",
Victor Chang82f70f42021-05-27 12:30:53 +01001082 "--hide-annotation libcore.api.Hide",
Paul Duffinc9abfe92020-09-10 10:48:09 +01001083 ],
Paul Duffin5cd69e42019-10-11 17:12:23 +01001084
Victor Chang92f77ce2023-12-13 16:01:07 +00001085 merge_inclusion_annotations_dirs: [
Victor Changa0b264b2023-12-28 16:56:25 +00001086 "luni-annotated-flagged-stubs",
Victor Chang92f77ce2023-12-13 16:01:07 +00001087 "ojluni-annotated-flagged-stubs",
1088 "ojluni-annotated-mmodule-stubs",
1089 ],
Paul Duffin5cd69e42019-10-11 17:12:23 +01001090 // Emit nullability annotations from the source to the stub files.
Paul Duffinc3e1c0a2019-11-01 20:29:36 +00001091 annotations_enabled: true,
1092
1093 merge_annotations_dirs: [
Paul Duffinc9abfe92020-09-10 10:48:09 +01001094 "metalava-manual",
Paul Duffinc3e1c0a2019-11-01 20:29:36 +00001095 "ojluni-annotated-sdk-stubs",
1096 ],
Nan Zhang602fc0e2018-03-22 16:14:22 -07001097
Paul Duffin0f3b1142020-09-16 17:17:25 +01001098 doctag_files: [
1099 ":known-oj-tags",
1100 ],
1101
Paul Duffina8bb6062019-09-25 15:50:13 +01001102 errorprone: {
1103 javacflags: [
1104 "-Xep:MissingOverride:OFF",
1105 ],
1106 },
Paul Duffin1d7d4a72019-10-10 18:15:01 +01001107 patch_module: "java.base",
Paul Duffina8bb6062019-09-25 15:50:13 +01001108 sdk_version: "none",
Paul Duffin5cd69e42019-10-11 17:12:23 +01001109 system_modules: "java-current-stubs-system-modules",
Anton Hanssonaba92c72020-12-17 17:00:01 +00001110 // The base name for the artifacts that are automatically published to the
1111 // dist and which end up in one of the sub-directories of prebuilts/sdk.
1112 // As long as this matches the name of the artifacts in prebuilts/sdk then
1113 // the API will be checked for compatibility against the latest released
1114 // version of the API.
1115 dist_stem: "art",
Colin Cross08ed4162021-05-10 10:48:15 -07001116 dist_group: "android",
Jihoon Kang5680a6d2024-01-04 00:54:10 +00001117 aconfig_declarations: [
1118 "libcore_aconfig_flags",
1119 ],
Paul Duffina8bb6062019-09-25 15:50:13 +01001120}
1121
Pete Gillin600c7cf2018-08-16 19:28:38 +01001122// Target for validating nullability annotations for correctness and
1123// completeness. To check that there are no nullability errors:
Paul Duffinbfbfb672019-10-03 17:53:32 +01001124// m art-module-public-api-stubs-nullability-validation
Pete Gillin600c7cf2018-08-16 19:28:38 +01001125// To check that there are only the expected nullability warnings:
Paul Duffinbfbfb672019-10-03 17:53:32 +01001126// m art-module-public-api-stubs-nullability-validation-check-nullability-warnings
Pete Gillincdca7f82019-10-04 13:28:57 +01001127// (If that check fails, it will provide instructions on how to proceed,
1128// including the command to run to update the expected warnings file.)
Pete Gillin600c7cf2018-08-16 19:28:38 +01001129droidstubs {
Paul Duffinbfbfb672019-10-03 17:53:32 +01001130 name: "art-module-public-api-stubs-nullability-validation",
1131 srcs: [":art_module_api_files"],
Pete Gillin600c7cf2018-08-16 19:28:38 +01001132 installable: false,
Paul Duffin419b2422019-06-25 15:42:05 +01001133 sdk_version: "none",
Paul Duffinc799a7c2019-10-11 14:19:36 +01001134 system_modules: "none",
Pete Gillin600c7cf2018-08-16 19:28:38 +01001135 annotations_enabled: true,
1136 args: "--hide-annotation libcore.api.Hide " +
1137 "--validate-nullability-from-merged-stubs ",
1138 merge_inclusion_annotations_dirs: ["ojluni-annotated-mmodule-stubs"],
1139 merge_annotations_dirs: [
Pete Gillin600c7cf2018-08-16 19:28:38 +01001140 // N.B. Stubs in this filegroup will be validated:
1141 "ojluni-annotated-nullability-stubs",
1142 ],
Pete Gillinc5f179b2018-11-14 18:42:19 +00001143 // The list of classes which have nullability annotations included in the source.
1144 // (This is in addition to those which have annotations in the merged stubs.)
1145 validate_nullability_from_list: "nullability_annotated_classes.txt",
Pete Gillin600c7cf2018-08-16 19:28:38 +01001146 // The expected set of warnings about missing annotations:
1147 check_nullability_warnings: "nullability_warnings.txt",
1148}
1149
Paul Duffinf48513e2019-10-07 14:04:04 +01001150// A special set of system modules for building the following library for use
1151// in the art-module-public-api-system-modules.
1152java_system_modules {
1153 name: "api-annotations-system-modules",
1154 libs: [
1155 "art.module.public.api.stubs",
1156 ],
1157}
1158
Paul Duffin81dd1df2019-10-10 15:44:53 +01001159// A library that contains annotations that define API surfaces (core
1160// platform, intra core and the hidden API) along with some supporting
1161// constants. The annotations are source only and do not introduce any runtime
1162// dependencies. Specially built for use in system modules definitions to
1163// avoid introducing compile time cycles.
Victor Changb28d3f82019-08-09 16:24:46 +01001164java_library {
Paul Duffin81dd1df2019-10-10 15:44:53 +01001165 name: "art.module.api.annotations.for.system.modules",
Spandan Das54940932022-12-08 02:40:37 +00001166 visibility: [
1167 "//build/soong/java/core-libraries",
1168 ],
Victor Changb28d3f82019-08-09 16:24:46 +01001169 srcs: [
Paul Duffin81dd1df2019-10-10 15:44:53 +01001170 ":api_surface_annotation_files",
Victor Changb28d3f82019-08-09 16:24:46 +01001171 ],
1172
1173 installable: false,
Paul Duffinf545bc72019-10-02 14:07:04 +01001174 sdk_version: "none",
Paul Duffinf48513e2019-10-07 14:04:04 +01001175 system_modules: "api-annotations-system-modules",
1176 patch_module: "java.base",
Sorin Bascac90e1e72023-06-02 11:13:31 +00001177 // This jar is packaged as part of the SDK, use -target 8 so that it works
1178 // with old JDKs.
1179 java_version: "1.8",
Victor Changb28d3f82019-08-09 16:24:46 +01001180}
1181
Paul Duffin81dd1df2019-10-10 15:44:53 +01001182// Create a library containing the api surface annotations, built against
1183// core_current for use by the annotation processor in frameworks/base.
1184java_library {
1185 name: "art.module.api.annotations",
Paul Duffinc241d6a2019-06-25 15:40:29 +01001186 visibility: [
Martin Stjernholm4b8e2f92020-11-11 02:46:59 +00001187 "//art/build/sdk",
1188 "//external/icu/android_icu4j",
Paul Duffinc241d6a2019-06-25 15:40:29 +01001189 "//frameworks/base",
Anton Hansson8c5fd9b2023-03-03 17:29:24 +00001190 "//frameworks/base/api",
Paul Duffinc241d6a2019-06-25 15:40:29 +01001191 ],
Paul Duffin81dd1df2019-10-10 15:44:53 +01001192 host_supported: true,
Andrei Onea24892e22019-04-16 16:48:37 +01001193 srcs: [
Paul Duffin81dd1df2019-10-10 15:44:53 +01001194 ":api_surface_annotation_files",
Andrei Onea24892e22019-04-16 16:48:37 +01001195 ],
Paul Duffin81dd1df2019-10-10 15:44:53 +01001196 sdk_version: "core_current",
Paul Duffin602d2f42022-08-23 12:57:15 +00001197 // Make sure that this will be added to the sdk snapshot for S.
1198 min_sdk_version: "S",
Sorin Basca1eeea0f2023-06-13 15:47:01 +00001199 // This jar is packaged as part of the ART module host exports, use -target 8 so that it works
1200 // with old JDKs.
1201 java_version: "1.8",
Neil Fuller86345d72019-04-25 09:15:32 +01001202}