blob: 496770a104998fb2b94b625bf6e85938ec7c12c3 [file] [log] [blame]
Andreas Gampe049b2112018-02-21 13:49:04 -08001// 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
Bob Badourcbe98262021-02-12 20:25:42 -080015package {
16 default_applicable_licenses: ["external_error_prone_license"],
Colin Crossffaf2612022-01-25 16:07:27 -080017 default_visibility: ["//external/error_prone"],
Bob Badourcbe98262021-02-12 20:25:42 -080018}
19
Bob Badourcbe98262021-02-12 20:25:42 -080020// See: http://go/android-license-faq
Bob Badour597380e2022-01-24 18:55:17 -080021// 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",
Bob Badourcbe98262021-02-12 20:25:42 -080027license {
28 name: "external_error_prone_license",
Bob Badour597380e2022-01-24 18:55:17 -080029 package_name: "Google Error Prone",
Bob Badourcbe98262021-02-12 20:25:42 -080030 visibility: [":__subpackages__"],
Bob Badour597380e2022-01-24 18:55:17 -080031 license_kinds: ["SPDX-license-identifier-Apache-2.0"],
Colin Crossffaf2612022-01-25 16:07:27 -080032 license_text: ["error_prone/LICENSE"],
Bob Badourcbe98262021-02-12 20:25:42 -080033}
34
Andreas Gampe049b2112018-02-21 13:49:04 -080035java_import {
36 name: "error_prone_annotations",
37 host_supported: true,
Colin Crossffaf2612022-01-25 16:07:27 -080038 visibility: ["//visibility:public"],
Cole Faustc2676a82022-02-03 11:44:25 -080039 jars: ["error_prone/error_prone_annotations-2.11.0.jar"],
Santiago Seifertfe315ff2021-11-19 19:19:40 +000040 min_sdk_version : "29",
Santiago Seifert67bd5702021-10-07 17:50:04 +000041 apex_available: [
42 "//apex_available:anyapex",
43 "//apex_available:platform",
44 ],
Andreas Gampe049b2112018-02-21 13:49:04 -080045}
46
Julien Desprez6fc8c6d2018-07-24 11:03:46 -070047java_import {
Colin Crossffaf2612022-01-25 16:07:27 -080048 name: "error_prone_core_jars",
Julien Desprez6fc8c6d2018-07-24 11:03:46 -070049 host_supported: true,
50 jars: [
Cole Faustc2676a82022-02-03 11:44:25 -080051 "error_prone/error_prone_core-2.11.0-with-dependencies.jar",
52 "error_prone/error_prone_annotations-2.11.0.jar",
Colin Crossffaf2612022-01-25 16:07:27 -080053 ],
54}
55
56java_library {
57 name: "error_prone_core",
58 host_supported: true,
59 visibility: ["//visibility:public"],
60 static_libs: [
61 "error_prone_checkerframework_dataflow_errorprone",
62 "error_prone_core_jars",
63 "error_prone_javac",
64 "error_prone_jFormatString",
Julien Desprez6fc8c6d2018-07-24 11:03:46 -070065 ],
66}
67
Colin Crosscf1a56d2019-03-25 10:25:48 -070068java_import {
69 name: "error_prone_test_helpers",
70 host_supported: true,
Colin Crossffaf2612022-01-25 16:07:27 -080071 visibility: ["//visibility:public"],
Colin Crossabf489f2019-04-22 23:34:16 -070072 jars: [
Cole Faustc2676a82022-02-03 11:44:25 -080073 "error_prone/error_prone_test_helpers-2.11.0.jar",
Colin Crossabf489f2019-04-22 23:34:16 -070074 "jimfs/jimfs-1.1.jar",
75 ],
Colin Crosscf1a56d2019-03-25 10:25:48 -070076}