xref: /aosp_15_r20/external/error_prone/Android.bp (revision b74d98a7c41acf48a623a553cea15f54b99b91e1)
1// Copyright (C) 2017 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_error_prone_license"],
17    default_visibility: ["//external/error_prone"],
18}
19
20// See: http://go/android-license-faq
21// The below licenses are not used in this project. They are mentioned
22// in reference to components not stored here.
23//        "SPDX-license-identifier-BSD",
24//        "SPDX-license-identifier-CPL-1.0",
25//        "SPDX-license-identifier-EPL",
26//        "SPDX-license-identifier-LGPL",
27license {
28    name: "external_error_prone_license",
29    package_name: "Google Error Prone",
30    visibility: [":__subpackages__"],
31    license_kinds: ["SPDX-license-identifier-Apache-2.0"],
32    license_text: ["error_prone/LICENSE"],
33}
34
35java_import {
36    name: "error_prone_annotations",
37    host_supported: true,
38    visibility: ["//visibility:public"],
39    jars: ["error_prone/error_prone_annotations-2.36.0.jar"],
40    min_sdk_version: "29",
41    apex_available: [
42        "//apex_available:anyapex",
43        "//apex_available:platform",
44    ],
45    target: {
46        windows: {
47            enabled: true,
48        },
49    },
50}
51
52java_import {
53    name: "error_prone_core_jars",
54    host_supported: true,
55    jars: [
56        "error_prone/error_prone_core-2.36.0-with-dependencies.jar",
57        "error_prone/error_prone_annotations-2.36.0.jar",
58    ],
59}
60
61java_library {
62    name: "error_prone_core",
63    host_supported: true,
64    visibility: ["//visibility:public"],
65    static_libs: [
66        "error_prone_checkerframework_dataflow_errorprone",
67        "error_prone_core_jars",
68        "error_prone_jFormatString",
69    ],
70    sdk_version: "core_current",
71}
72
73java_import {
74    name: "error_prone_test_helpers",
75    host_supported: true,
76    visibility: ["//visibility:public"],
77    jars: [
78        "error_prone/error_prone_test_helpers-2.36.0.jar",
79        "jimfs/jimfs-1.1.jar",
80    ],
81}
82