xref: /aosp_15_r20/external/error_prone/Android.bp (revision b74d98a7c41acf48a623a553cea15f54b99b91e1)
1*b74d98a7SAndroid Build Coastguard Worker// Copyright (C) 2017 The Android Open Source Project
2*b74d98a7SAndroid Build Coastguard Worker//
3*b74d98a7SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*b74d98a7SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*b74d98a7SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*b74d98a7SAndroid Build Coastguard Worker//
7*b74d98a7SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*b74d98a7SAndroid Build Coastguard Worker//
9*b74d98a7SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*b74d98a7SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*b74d98a7SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*b74d98a7SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*b74d98a7SAndroid Build Coastguard Worker// limitations under the License.
14*b74d98a7SAndroid Build Coastguard Worker
15*b74d98a7SAndroid Build Coastguard Workerpackage {
16*b74d98a7SAndroid Build Coastguard Worker    default_applicable_licenses: ["external_error_prone_license"],
17*b74d98a7SAndroid Build Coastguard Worker    default_visibility: ["//external/error_prone"],
18*b74d98a7SAndroid Build Coastguard Worker}
19*b74d98a7SAndroid Build Coastguard Worker
20*b74d98a7SAndroid Build Coastguard Worker// See: http://go/android-license-faq
21*b74d98a7SAndroid Build Coastguard Worker// The below licenses are not used in this project. They are mentioned
22*b74d98a7SAndroid Build Coastguard Worker// in reference to components not stored here.
23*b74d98a7SAndroid Build Coastguard Worker//        "SPDX-license-identifier-BSD",
24*b74d98a7SAndroid Build Coastguard Worker//        "SPDX-license-identifier-CPL-1.0",
25*b74d98a7SAndroid Build Coastguard Worker//        "SPDX-license-identifier-EPL",
26*b74d98a7SAndroid Build Coastguard Worker//        "SPDX-license-identifier-LGPL",
27*b74d98a7SAndroid Build Coastguard Workerlicense {
28*b74d98a7SAndroid Build Coastguard Worker    name: "external_error_prone_license",
29*b74d98a7SAndroid Build Coastguard Worker    package_name: "Google Error Prone",
30*b74d98a7SAndroid Build Coastguard Worker    visibility: [":__subpackages__"],
31*b74d98a7SAndroid Build Coastguard Worker    license_kinds: ["SPDX-license-identifier-Apache-2.0"],
32*b74d98a7SAndroid Build Coastguard Worker    license_text: ["error_prone/LICENSE"],
33*b74d98a7SAndroid Build Coastguard Worker}
34*b74d98a7SAndroid Build Coastguard Worker
35*b74d98a7SAndroid Build Coastguard Workerjava_import {
36*b74d98a7SAndroid Build Coastguard Worker    name: "error_prone_annotations",
37*b74d98a7SAndroid Build Coastguard Worker    host_supported: true,
38*b74d98a7SAndroid Build Coastguard Worker    visibility: ["//visibility:public"],
39*b74d98a7SAndroid Build Coastguard Worker    jars: ["error_prone/error_prone_annotations-2.36.0.jar"],
40*b74d98a7SAndroid Build Coastguard Worker    min_sdk_version: "29",
41*b74d98a7SAndroid Build Coastguard Worker    apex_available: [
42*b74d98a7SAndroid Build Coastguard Worker        "//apex_available:anyapex",
43*b74d98a7SAndroid Build Coastguard Worker        "//apex_available:platform",
44*b74d98a7SAndroid Build Coastguard Worker    ],
45*b74d98a7SAndroid Build Coastguard Worker    target: {
46*b74d98a7SAndroid Build Coastguard Worker        windows: {
47*b74d98a7SAndroid Build Coastguard Worker            enabled: true,
48*b74d98a7SAndroid Build Coastguard Worker        },
49*b74d98a7SAndroid Build Coastguard Worker    },
50*b74d98a7SAndroid Build Coastguard Worker}
51*b74d98a7SAndroid Build Coastguard Worker
52*b74d98a7SAndroid Build Coastguard Workerjava_import {
53*b74d98a7SAndroid Build Coastguard Worker    name: "error_prone_core_jars",
54*b74d98a7SAndroid Build Coastguard Worker    host_supported: true,
55*b74d98a7SAndroid Build Coastguard Worker    jars: [
56*b74d98a7SAndroid Build Coastguard Worker        "error_prone/error_prone_core-2.36.0-with-dependencies.jar",
57*b74d98a7SAndroid Build Coastguard Worker        "error_prone/error_prone_annotations-2.36.0.jar",
58*b74d98a7SAndroid Build Coastguard Worker    ],
59*b74d98a7SAndroid Build Coastguard Worker}
60*b74d98a7SAndroid Build Coastguard Worker
61*b74d98a7SAndroid Build Coastguard Workerjava_library {
62*b74d98a7SAndroid Build Coastguard Worker    name: "error_prone_core",
63*b74d98a7SAndroid Build Coastguard Worker    host_supported: true,
64*b74d98a7SAndroid Build Coastguard Worker    visibility: ["//visibility:public"],
65*b74d98a7SAndroid Build Coastguard Worker    static_libs: [
66*b74d98a7SAndroid Build Coastguard Worker        "error_prone_checkerframework_dataflow_errorprone",
67*b74d98a7SAndroid Build Coastguard Worker        "error_prone_core_jars",
68*b74d98a7SAndroid Build Coastguard Worker        "error_prone_jFormatString",
69*b74d98a7SAndroid Build Coastguard Worker    ],
70*b74d98a7SAndroid Build Coastguard Worker    sdk_version: "core_current",
71*b74d98a7SAndroid Build Coastguard Worker}
72*b74d98a7SAndroid Build Coastguard Worker
73*b74d98a7SAndroid Build Coastguard Workerjava_import {
74*b74d98a7SAndroid Build Coastguard Worker    name: "error_prone_test_helpers",
75*b74d98a7SAndroid Build Coastguard Worker    host_supported: true,
76*b74d98a7SAndroid Build Coastguard Worker    visibility: ["//visibility:public"],
77*b74d98a7SAndroid Build Coastguard Worker    jars: [
78*b74d98a7SAndroid Build Coastguard Worker        "error_prone/error_prone_test_helpers-2.36.0.jar",
79*b74d98a7SAndroid Build Coastguard Worker        "jimfs/jimfs-1.1.jar",
80*b74d98a7SAndroid Build Coastguard Worker    ],
81*b74d98a7SAndroid Build Coastguard Worker}
82