xref: /aosp_15_r20/external/apache-harmony/Android.bp (revision 81713db74cba1ee0e63be20cc9fbd773832c73df)
1// Copyright (C) 2011 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
15package {
16    default_visibility: ["//visibility:private"],
17    default_applicable_licenses: ["external_apache-harmony_license"],
18}
19
20// Added automatically by a large-scale-change
21// See: http://go/android-license-faq
22license {
23    name: "external_apache-harmony_license",
24    visibility: [":__subpackages__"],
25    license_kinds: [
26        "SPDX-license-identifier-Apache-2.0",
27    ],
28    license_text: [
29        "NOTICE",
30    ],
31}
32
33java_test {
34    name: "apache-harmony-tests",
35    visibility: [
36        "//art/build/sdk",
37        "//cts/tests/libcore/luni",
38        "//libcore",
39    ],
40    hostdex: true,
41    srcs: [
42        "beans/src/test/java/**/*.java",
43        "logging/src/test/java/**/*.java",
44        "luni/src/test/java/**/*.java",
45        "sql/src/test/java/**/*.java",
46        "support/src/test/java/**/*.java",
47
48        "beans/src/test/support/java/**/*.java",
49        "logging/src/test/support/java/**/*.java",
50        "luni/src/test/support/java/**/*.java",
51        "sql/src/test/support/java/**/*.java",
52        "support/src/test/support/java/**/*.java",
53
54        "luni/src/test/api/common/**/*.java",
55        "luni/src/test/api/unix/**/*.java",
56        "luni/src/test/impl/common/**/*.java",
57        "luni/src/test/impl/unix/**/*.java",
58    ],
59    java_resource_dirs: [
60        "beans/src/test/resources",
61        "logging/src/test/resources",
62        "sql/src/test/resources",
63        "support/src/test/resources",
64    ],
65    sdk_version: "none",
66    system_modules: "core-all-system-modules",
67    libs: [
68        "junit",
69    ],
70    static_libs: [
71        "core-tests-support",
72    ],
73    javacflags: ["-Xmaxwarns 9999999"],
74    // Pin java_version until jarjar is certified to support later versions. http://b/72703434
75    java_version: "1.8",
76
77    // b/73499927
78    errorprone: {
79        javacflags: [
80            "-Xep:MissingOverride:OFF",
81            "-Xep:DoNotCall:OFF",
82            "-Xep:TryFailThrowable:OFF",
83            "-Xep:ReturnValueIgnored:OFF",
84        ],
85    },
86}
87