xref: /aosp_15_r20/external/apache-commons-lang/Android.bp (revision 455610af95f3bf5f4bc8a9eda520f57e389a4c42)
1// Copyright (C) 2023 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_applicable_licenses: ["external_apache_commons_lang_license"],
17}
18
19license {
20    name: "external_apache_commons_lang_license",
21    visibility: [":__subpackages__"],
22    license_kinds: [
23        "SPDX-license-identifier-Apache-2.0",
24    ],
25    license_text: [
26        "LICENSE",
27        "LICENSE.txt",
28        "NOTICE.txt",
29    ],
30}
31
32java_library {
33    name: "apache-commons-lang",
34    host_supported: true,
35    srcs: ["src/main/java/**/*.java"],
36    exclude_srcs: ["src/main/java/**/MethodInvokers.java"],
37    sdk_version: "current",
38    min_sdk_version: "33",
39
40    java_version: "1.8",
41    apex_available: [
42        "//apex_available:platform",
43        "com.android.ondevicepersonalization",
44    ],
45    visibility: [
46        "//external/apache-velocity-engine",
47        "//packages/modules/OnDevicePersonalization:__subpackages__",
48    ],
49    errorprone: {
50        javacflags: [
51            "-Xep:ReturnValueIgnored:WARN",
52        ],
53    },
54}
55