blob: 1f312a6e127d8a405e9b78f42d95c5c81df99d5c [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//
16// Definitions for building the Java library and associated tests.
17//
18
Neil Fullercf756882018-08-28 18:42:22 +010019// libcore has some sub-directories that follow a common structure:
20// e.g. dalvik, dom, harmony-tests, json, jsr166-tests, luni, libart, ojluni,
21// support, xml, xmlpull.
Colin Crossaf0b54c2017-09-27 17:22:32 -070022//
Neil Fullercf756882018-08-28 18:42:22 +010023// The structure of these is generally:
Colin Crossaf0b54c2017-09-27 17:22:32 -070024//
25// src/
26// main/ # To be shipped on every device.
27// java/ # Java source for library code.
Neil Fullercf756882018-08-28 18:42:22 +010028// native/ # C/C++ source for library code.
Colin Crossaf0b54c2017-09-27 17:22:32 -070029// resources/ # Support files.
30// test/ # Built only on demand, for testing.
31// java/ # Java source for tests.
Neil Fullercf756882018-08-28 18:42:22 +010032// native/ # C/C++ source for tests (rare).
Colin Crossaf0b54c2017-09-27 17:22:32 -070033// resources/ # Support files.
34//
Neil Fullercf756882018-08-28 18:42:22 +010035// All subdirectories are optional.
Colin Crossaf0b54c2017-09-27 17:22:32 -070036
37build = [
38 "openjdk_java_files.bp",
39 "non_openjdk_java_files.bp",
40]
41
42// The Java files and their associated resources.
43core_resource_dirs = [
44 "luni/src/main/java",
45 "ojluni/src/main/resources/",
46]
47
Neil Fuller866ed4a2018-09-06 12:05:46 +010048// The source files that go into core-oj.
49filegroup {
50 name: "core_oj_java_files",
51 srcs: [":openjdk_java_files"],
52}
53
54// OpenJDK source is not annotated with @hide so we need a separate
55// filegroup for just the parts that contribute to the API.
56filegroup {
57 name: "core_oj_api_files",
58 srcs: [":openjdk_javadoc_files"],
59}
60
61// The source files that go into core-libart.
62filegroup {
63 name: "core_libart_java_files",
64 srcs: [
65 ":non_openjdk_java_files",
66 ":android_icu4j_src_files",
67 ],
68}
69
70// Some parts of libart are not annotated with @hide so we need a separate
71// filegroup for just the parts that contribute to the API.
72filegroup {
73 name: "core_libart_api_files",
74 srcs: [
75 ":non_openjdk_javadoc_files",
76 ":android_icu4j_src_files",
77 ],
78}
79
80// The set of files in core that have been marked up with @hide and API-related
Pete Gillinc9935b62018-09-25 14:42:40 +010081// annotations. Note that this includes the intra-core and core-platform APIs as
82// well as the public APIs. Some source files in :openjdk_mmodule_extra_files
83// are annotated by applying annotation to the .annotated.java stubs files in
84// ojluni/annotated/mmodules and rather than in the original source. See the
85// comments in openjdk_java_files.bp for more details.
Neil Fuller866ed4a2018-09-06 12:05:46 +010086filegroup {
87 name: "core_api_files",
88 srcs: [
Neil Fullerd129bc92018-09-26 11:12:58 +010089 ":apache-xml_api_files",
Neil Fullera77f7102018-09-21 19:04:41 +010090 ":bouncycastle_java_files",
Neil Fuller603e1a72018-09-25 11:55:41 +010091 ":conscrypt_java_files",
Neil Fuller866ed4a2018-09-06 12:05:46 +010092 ":core_oj_api_files",
93 ":core_libart_api_files",
94 ":core_simple_java_files",
Neil Fuller641d5f92018-09-24 15:40:39 +010095 ":okhttp_api_files",
Pete Gillinc9935b62018-09-25 14:42:40 +010096 ":openjdk_mmodule_extra_files",
Neil Fuller866ed4a2018-09-06 12:05:46 +010097 ],
98}
99
Colin Crossaf0b54c2017-09-27 17:22:32 -0700100java_defaults {
101 name: "libcore_java_defaults",
102 javacflags: [
103 //"-Xlint:all",
104 //"-Xlint:-serial,-deprecation,-unchecked",
105 ],
106 dxflags: ["--core-library"],
Andreas Gampe66b31732018-02-20 09:22:16 -0800107 errorprone: {
108 javacflags: [
109 "-Xep:MissingOverride:OFF", // Ignore missing @Override.
Andreas Gampe24a20172018-06-13 11:28:45 -0700110 "-Xep:ConstantOverflow:WARN", // Known constant overflow in SplittableRandom
Andreas Gampe66b31732018-02-20 09:22:16 -0800111 ],
112 },
Colin Crossaf0b54c2017-09-27 17:22:32 -0700113}
114
115//
116// Build for the target (device).
117//
118
Victor Chang7fef4052018-09-25 14:12:03 +0100119// Rule generating resource lib for android_icu4j.
120// In the downstream branch master-icu-dev, the resource files are generated.
121// This rule can't be moved external/icu because soong enforces that no_standard_libs:true can only
122// be used in libcore/ or development/
123java_library {
124 name: "android_icu4j_resources_lib",
125 java_resources: [":android_icu4j_resources"],
126 no_standard_libs: true,
127 system_modules: "none",
128}
129
Colin Crossaf0b54c2017-09-27 17:22:32 -0700130java_library {
131 name: "core-all",
132 defaults: ["libcore_java_defaults"],
133
134 srcs: [
Neil Fuller866ed4a2018-09-06 12:05:46 +0100135 ":core_oj_java_files",
136 ":core_libart_java_files",
137 ":core_simple_java_files",
Colin Crossaf0b54c2017-09-27 17:22:32 -0700138 ":openjdk_lambda_stub_files",
139 ],
Colin Crossec80f4f2018-08-15 21:17:11 -0700140
141 no_standard_libs: true,
142 system_modules: "none",
Colin Crossa4d9fc42017-09-29 18:04:37 -0700143 openjdk9: {
144 srcs: ["luni/src/module/java/module-info.java"],
145 javacflags: ["--patch-module=java.base=."],
146 },
Colin Crossec80f4f2018-08-15 21:17:11 -0700147
Colin Crossaf0b54c2017-09-27 17:22:32 -0700148 java_resource_dirs: core_resource_dirs,
Victor Chang7fef4052018-09-25 14:12:03 +0100149 static_libs: ["android_icu4j_resources_lib"],
Colin Crossaf0b54c2017-09-27 17:22:32 -0700150
151 required: [
152 "tzdata",
153 "tzlookup.xml",
154 ],
155
156 installable: false,
157}
158
Colin Crossa4d9fc42017-09-29 18:04:37 -0700159java_system_modules {
160 name: "core-all-system-modules",
161 libs: ["core-all"],
162}
163
Colin Crossaf0b54c2017-09-27 17:22:32 -0700164java_library {
165 name: "core-oj",
166 defaults: ["libcore_java_defaults"],
Colin Cross5b75cdd2018-06-27 11:00:13 -0700167 installable: true,
Colin Crossbb180be2017-10-09 14:54:53 -0700168 hostdex: true,
Colin Crossaf0b54c2017-09-27 17:22:32 -0700169
Neil Fuller866ed4a2018-09-06 12:05:46 +0100170 srcs: [":core_oj_java_files"],
Colin Crossaf0b54c2017-09-27 17:22:32 -0700171 java_resource_dirs: core_resource_dirs,
Colin Crossec80f4f2018-08-15 21:17:11 -0700172
173 no_standard_libs: true,
Colin Crossaf0b54c2017-09-27 17:22:32 -0700174 libs: ["core-all"],
Colin Crossa4d9fc42017-09-29 18:04:37 -0700175 system_modules: "core-all-system-modules",
176 openjdk9: {
177 javacflags: ["--patch-module=java.base=."],
178 },
Colin Crossec80f4f2018-08-15 21:17:11 -0700179
Pete Gillin7a7a6d22017-12-19 14:56:03 +0000180 jacoco: {
Pete Gillin27ca0582018-01-10 17:04:17 +0000181 exclude_filter: [
Pete Gillin3f59bad2018-01-30 11:20:29 +0000182 "java.lang.Class",
183 "java.lang.Long",
184 "java.lang.Number",
185 "java.lang.Object",
186 "java.lang.String",
187 "java.lang.invoke.MethodHandle",
188 "java.lang.ref.Reference",
189 "java.lang.reflect.Proxy",
Pete Gillinb1868ada2018-01-17 11:03:10 +0000190 "java.util.AbstractMap",
Pete Gillin3f59bad2018-01-30 11:20:29 +0000191 "java.util.HashMap",
192 "java.util.HashMap$Node",
Pete Gillinb1868ada2018-01-17 11:03:10 +0000193 "java.util.Map",
Pete Gillin7a7a6d22017-12-19 14:56:03 +0000194 ],
195 },
Colin Crossaf0b54c2017-09-27 17:22:32 -0700196
197 notice: "ojluni/NOTICE",
198
199 required: [
200 "tzdata",
201 "tzlookup.xml",
202 ],
Colin Crossbb180be2017-10-09 14:54:53 -0700203
Colin Crossaf0b54c2017-09-27 17:22:32 -0700204}
205
206// Definitions to make the core library.
207java_library {
208 name: "core-libart",
209 defaults: ["libcore_java_defaults"],
Colin Cross5b75cdd2018-06-27 11:00:13 -0700210 installable: true,
Colin Crossbb180be2017-10-09 14:54:53 -0700211 hostdex: true,
Colin Crossaf0b54c2017-09-27 17:22:32 -0700212
Neil Fuller866ed4a2018-09-06 12:05:46 +0100213 srcs: [":core_libart_java_files"],
Victor Chang7fef4052018-09-25 14:12:03 +0100214 static_libs: ["android_icu4j_resources_lib"],
Colin Crossaf0b54c2017-09-27 17:22:32 -0700215
Colin Crossec80f4f2018-08-15 21:17:11 -0700216 no_standard_libs: true,
Colin Crossaf0b54c2017-09-27 17:22:32 -0700217 libs: ["core-all"],
Colin Crossa4d9fc42017-09-29 18:04:37 -0700218 system_modules: "core-all-system-modules",
219 openjdk9: {
220 javacflags: ["--patch-module=java.base=."],
221 },
Colin Crossec80f4f2018-08-15 21:17:11 -0700222
Pete Gillin80ebe872018-02-13 15:21:20 +0000223 jacoco: {
224 exclude_filter: [
225 "java.lang.DexCache",
226 "dalvik.system.ClassExt",
227 ],
228 },
Colin Crossaf0b54c2017-09-27 17:22:32 -0700229
230 required: [
231 "tzdata",
232 "tzlookup.xml",
233 ],
234}
235
Colin Cross3c6c2e22017-10-18 13:24:52 -0700236// A guaranteed unstripped version of core-oj and core-libart.
237// The build system may or may not strip the core-oj and core-libart jars,
238// but these will not be stripped. See b/24535627.
239java_library {
240 name: "core-oj-testdex",
Colin Cross5b75cdd2018-06-27 11:00:13 -0700241 installable: true,
Colin Cross3c6c2e22017-10-18 13:24:52 -0700242 static_libs: ["core-oj"],
243 no_standard_libs: true,
244 libs: ["core-all"],
245 system_modules: "core-all-system-modules",
246 dxflags: ["--core-library"],
Colin Cross485ed362017-12-05 17:24:22 -0800247 dex_preopt: {
248 enabled: false,
249 },
Colin Cross3c6c2e22017-10-18 13:24:52 -0700250 notice: "ojluni/NOTICE",
251 required: [
252 "tzdata",
253 "tzlookup.xml",
254 ],
255}
256
257java_library {
258 name: "core-libart-testdex",
Colin Cross5b75cdd2018-06-27 11:00:13 -0700259 installable: true,
Colin Cross3c6c2e22017-10-18 13:24:52 -0700260 static_libs: ["core-libart"],
261 no_standard_libs: true,
262 libs: ["core-all"],
263 system_modules: "core-all-system-modules",
264 dxflags: ["--core-library"],
Colin Cross485ed362017-12-05 17:24:22 -0800265 dex_preopt: {
266 enabled: false,
267 },
Colin Cross3c6c2e22017-10-18 13:24:52 -0700268 notice: "ojluni/NOTICE",
269 required: [
270 "tzdata",
271 "tzlookup.xml",
272 ],
273}
274
Colin Crossaf0b54c2017-09-27 17:22:32 -0700275// A library that exists to satisfy javac when
276// compiling source code that contains lambdas.
277java_library {
278 name: "core-lambda-stubs",
279 defaults: ["libcore_java_defaults"],
Neil Fuller4207c7f2018-10-10 14:01:40 +0100280 hostdex: true,
Colin Crossaf0b54c2017-09-27 17:22:32 -0700281
282 srcs: [
283 ":openjdk_lambda_stub_files",
284 ":openjdk_lambda_duplicate_stub_files",
285 ],
286
Colin Crossec80f4f2018-08-15 21:17:11 -0700287 no_standard_libs: true,
Colin Crossaf0b54c2017-09-27 17:22:32 -0700288 libs: ["core-all"],
Colin Crossa4d9fc42017-09-29 18:04:37 -0700289 system_modules: "core-all-system-modules",
290 openjdk9: {
291 javacflags: ["--patch-module=java.base=."],
292 },
Colin Crossaf0b54c2017-09-27 17:22:32 -0700293
294 notice: "ojluni/NOTICE",
295
296 installable: false,
297 include_srcs: true,
298}
Colin Crossa4d9fc42017-09-29 18:04:37 -0700299
Neil Fuller866ed4a2018-09-06 12:05:46 +0100300// The libraries that make up core.
Colin Crossa4d9fc42017-09-29 18:04:37 -0700301java_system_modules {
302 name: "core-system-modules",
303 libs: [
304 "core-oj",
305 "core-libart",
Neil Fuller866ed4a2018-09-06 12:05:46 +0100306 "core-simple",
307 // This one is not on device but it's needed when javac compiles code
308 // containing lambdas.
Neil Fullerb669ccb2018-10-04 23:10:27 +0100309 "core-lambda-stubs",
310 "bouncycastle",
311 "conscrypt",
312 "okhttp",
Colin Crossa4d9fc42017-09-29 18:04:37 -0700313 ],
314}
Colin Cross3c6c2e22017-10-18 13:24:52 -0700315
316// Build libcore test rules
317java_library_static {
318 name: "core-test-rules",
319 hostdex: true,
Colin Cross3c6c2e22017-10-18 13:24:52 -0700320 srcs: [
321 "dalvik/test-rules/src/main/**/*.java",
322 "test-rules/src/main/**/*.java",
323 ],
324 static_libs: ["junit"],
Neil Fuller4207c7f2018-10-10 14:01:40 +0100325
326 no_standard_libs: true,
327 libs: ["core-all"],
328 system_modules: "core-all-system-modules",
Colin Cross3c6c2e22017-10-18 13:24:52 -0700329}
330
331// Make the core-tests-support library.
332java_library_static {
333 name: "core-tests-support",
334 hostdex: true,
Colin Cross3c6c2e22017-10-18 13:24:52 -0700335 srcs: ["support/src/test/java/**/*.java"],
Neil Fuller4207c7f2018-10-10 14:01:40 +0100336
Neil Fullerde8b0862018-10-12 21:53:31 +0100337 sdk_version: "core_platform_current",
Colin Cross3c6c2e22017-10-18 13:24:52 -0700338 libs: [
339 "junit",
Colin Cross3c6c2e22017-10-18 13:24:52 -0700340 ],
341 static_libs: [
Neil Fullerde8b0862018-10-12 21:53:31 +0100342 "bouncycastle-unbundled",
343 "bouncycastle-bcpkix-unbundled",
344 "bouncycastle-ocsp-unbundled",
Colin Cross3c6c2e22017-10-18 13:24:52 -0700345 ],
346}
347
348// Make the jsr166-tests library.
Colin Crossec80f4f2018-08-15 21:17:11 -0700349java_test {
Colin Cross3c6c2e22017-10-18 13:24:52 -0700350 name: "jsr166-tests",
351 srcs: ["jsr166-tests/src/test/java/**/*.java"],
Neil Fuller4207c7f2018-10-10 14:01:40 +0100352 no_standard_libs: true,
Colin Cross3c6c2e22017-10-18 13:24:52 -0700353 libs: [
Neil Fuller4207c7f2018-10-10 14:01:40 +0100354 "core-all",
Colin Cross3c6c2e22017-10-18 13:24:52 -0700355 "junit",
356 ],
Neil Fuller4207c7f2018-10-10 14:01:40 +0100357 system_modules: "core-all-system-modules",
Colin Cross3c6c2e22017-10-18 13:24:52 -0700358}
Nan Zhang65f27a32018-01-05 10:41:46 -0800359
Colin Crossec80f4f2018-08-15 21:17:11 -0700360// Build a library just containing files from luni/src/test/filesystems for use in tests.
361java_library {
362 name: "filesystemstest",
363 compile_dex: true,
364 srcs: ["luni/src/test/filesystems/src/**/*.java"],
365 java_resource_dirs: ["luni/src/test/filesystems/resources"],
366 no_framework_libs: true,
367 errorprone: {
368 javacflags: ["-Xep:MissingOverride:OFF"],
369 },
370}
371
372// Build a library just containing files from luni/src/test/parameter_metadata for use in tests.
373java_library {
374 name: "parameter-metadata-test",
375 compile_dex: true,
376 srcs: ["luni/src/test/parameter_metadata/src/**/*.java"],
377 no_framework_libs: true,
378 javacflags: ["-parameters"],
379 errorprone: {
380 javacflags: ["-Xep:MissingOverride:OFF"],
381 },
382}
383
384// Make the core-tests library.
385java_test {
386 name: "core-tests",
387 defaults: ["libcore_java_defaults"],
388 hostdex: true,
389 srcs: [
390 "dalvik/src/test/java/**/*.java",
391 "dalvik/test-rules/src/test/java/**/*.java",
392 "dom/src/test/java/**/*.java",
393 "harmony-tests/src/test/java/**/*.java",
394 "json/src/test/java/**/*.java",
395 "luni/src/test/java/**/*.java",
396 "xml/src/test/java/**/*.java",
397 ],
398 exclude_srcs: [
399 "luni/src/test/java/libcore/java/util/zip/Zip64Test.java",
400 "luni/src/test/java/libcore/java/util/zip/Zip64FileTest.java",
401 ],
402
403 java_resource_dirs: [
404 "*/src/test/java",
405 "*/src/test/resources",
406 ],
407 exclude_java_resource_dirs: [
408 "ojluni/src/test/java",
409 "ojluni/src/test/resources",
410 ],
411
412 java_resources: [
413 ":filesystemstest",
414 ":parameter-metadata-test",
415 ],
416
Neil Fuller4207c7f2018-10-10 14:01:40 +0100417 no_standard_libs: true,
418 libs: [
419 "core-all",
420 "okhttp",
421 "bouncycastle",
422 ],
423 system_modules: "core-all-system-modules",
424
Colin Crossec80f4f2018-08-15 21:17:11 -0700425 static_libs: [
426 "archive-patcher",
427 "core-test-rules",
428 "core-tests-support",
429 "junit-params",
430 "mockftpserver",
431 "mockito-target",
432 "mockwebserver",
433 "nist-pkix-tests",
434 "slf4j-jdk14",
435 "sqlite-jdbc",
436 "tzdata-testing",
437 ],
438
439 errorprone: {
440 javacflags: [
441 "-Xep:TryFailThrowable:ERROR",
442 "-Xep:ComparisonOutOfRange:ERROR",
443 ],
444 },
Simran Basi3be01e02018-08-21 17:53:49 -0700445
446 test_config: "AndroidTest-core-tests.xml",
Colin Crossec80f4f2018-08-15 21:17:11 -0700447}
448
449// Make the core-ojtests library.
450java_test {
451 name: "core-ojtests",
452 defaults: ["libcore_java_defaults"],
453 hostdex: true,
454
455 srcs: [
456 "ojluni/src/test/java/**/*.java",
457 ],
458 java_resource_dirs: [
459 "ojluni/src/test/java",
460 "ojluni/src/test/resources",
461 ],
Neil Fullerb669ccb2018-10-04 23:10:27 +0100462
Neil Fuller4207c7f2018-10-10 14:01:40 +0100463 no_standard_libs: true,
464 libs: [
465 "core-all",
466 "okhttp",
467 "bouncycastle",
468 ],
469 system_modules: "core-all-system-modules",
470
Colin Crossec80f4f2018-08-15 21:17:11 -0700471 static_libs: ["testng"],
472
473 // ojluni/src/test/java/util/stream/{bootlib,boottest}
474 // contains tests that are in packages from java.base;
475 // By default, OpenJDK 9's javac will only compile such
476 // code if it's declared to also be in java.base at
477 // compile time.
478 //
479 // For now, we use --patch-module to put all sources
480 // and dependencies from this make target into java.base;
481 // other source directories in this make target are in
482 // packages not from java.base; if this becomes a problem
483 // in future, this could be addressed eg. by splitting
484 // boot{lib,test} out into a separate make target,
485 // deleting those tests or moving them to a different
486 // package.
487 patch_module: "java.base",
488}
489
490// Make the core-ojtests-public library. Excludes any private API tests.
491java_test {
492 name: "core-ojtests-public",
493 defaults: ["libcore_java_defaults"],
494 srcs: [
495 "ojluni/src/test/java/**/*.java",
496 ],
497 // Filter out the following:
498 // 1.) DeserializeMethodTest and SerializedLambdaTest, because they depends on stub classes
499 // and won't actually run, and
500 // 2.) util/stream/boot*. Those directories contain classes in the package java.util.stream;
501 // excluding them means we don't need patch_module: "java.base"
502 exclude_srcs: [
503 "**/DeserializeMethodTest.java",
504 "**/SerializedLambdaTest.java",
505 "ojluni/src/test/java/util/stream/boot*/**/*",
506 ],
507 java_resource_dirs: [
508 "ojluni/src/test/java",
509 "ojluni/src/test/resources",
510 // Include source code as part of JAR
511 "ojluni/src/test/dist",
512 ],
Neil Fuller4207c7f2018-10-10 14:01:40 +0100513
514 no_standard_libs: true,
515 libs: [
516 "core-all",
517 "bouncycastle",
518 "okhttp",
519 "testng",
520 ],
521 system_modules: "core-all-system-modules",
Colin Crossec80f4f2018-08-15 21:17:11 -0700522}
523
Pete Gillin7db7faa2018-07-31 13:29:35 +0100524// Make the annotated stubs in ojluni/annotations available to metalava:
525droiddoc_exported_dir {
Pete Gillin0728b742018-09-17 15:41:45 +0100526 name: "ojluni-annotated-sdk-stubs",
527 path: "ojluni/annotations/sdk",
Pete Gillin7db7faa2018-07-31 13:29:35 +0100528}
Pete Gillinc9935b62018-09-25 14:42:40 +0100529droiddoc_exported_dir {
530 name: "ojluni-annotated-mmodule-stubs",
531 path: "ojluni/annotations/mmodule",
532}
Pete Gillin7db7faa2018-07-31 13:29:35 +0100533
Neil Fuller6f16b462018-09-04 15:40:39 +0100534// A file containing the list of tags that are "known" to us from the OpenJdk
535// source code and so should not cause an error or warning.
Nan Zhangd55722b2018-02-27 15:08:20 -0800536filegroup {
537 name: "known-oj-tags",
538 srcs: [
539 "known_oj_tags.txt",
540 ],
541}
Nan Zhang602fc0e2018-03-22 16:14:22 -0700542
Neil Fullera6ba3592018-09-21 13:19:37 +0100543// Stubs for the parts of the public SDK API provided by the core libraries.
Nan Zhangf0207602018-09-10 18:57:38 -0700544droidstubs {
545 name: "core-current-stubs-gen",
Neil Fuller866ed4a2018-09-06 12:05:46 +0100546 srcs: [":core_api_files"],
Nan Zhang602fc0e2018-03-22 16:14:22 -0700547 installable: false,
548 no_framework_libs: true,
Neil Fullerbe9258e2018-09-24 17:11:27 +0100549 args: " --exclude-annotations "
550 + "--hide-annotation libcore.api.Hide",
551 merge_inclusion_annotations_dirs: ["ojluni-annotated-mmodule-stubs"],
Nan Zhang602fc0e2018-03-22 16:14:22 -0700552}
553
Neil Fullera6ba3592018-09-21 13:19:37 +0100554// A library containing the parts of the public SDK API provided by the core libraries.
555// Don't use this directly, use "sdk_version: core_current".
556java_library {
Nan Zhang602fc0e2018-03-22 16:14:22 -0700557 name: "core.current.stubs",
Nan Zhangf0207602018-09-10 18:57:38 -0700558 srcs: [":core-current-stubs-gen"],
Nan Zhang602fc0e2018-03-22 16:14:22 -0700559 errorprone: {
560 javacflags: [
561 "-Xep:MissingOverride:OFF",
562 ],
563 },
Tobias Thierer496a9382018-06-12 14:09:11 +0100564 openjdk9: {
565 javacflags: ["--patch-module=java.base=."],
566 },
Nan Zhang602fc0e2018-03-22 16:14:22 -0700567 no_standard_libs: true,
568 system_modules: "none",
569}