xref: /aosp_15_r20/external/jsr305/Android.bp (revision b04680f1c99af11485d01a884cf292a99837b6c5)
1*b04680f1SMatt Gilbride// Copyright (C) 2010 The Android Open Source Project
2*b04680f1SMatt Gilbride//
3*b04680f1SMatt Gilbride// Licensed under the Apache License, Version 2.0 (the "License");
4*b04680f1SMatt Gilbride// you may not use this file except in compliance with the License.
5*b04680f1SMatt Gilbride// You may obtain a copy of the License at
6*b04680f1SMatt Gilbride//
7*b04680f1SMatt Gilbride//      http://www.apache.org/licenses/LICENSE-2.0
8*b04680f1SMatt Gilbride//
9*b04680f1SMatt Gilbride// Unless required by applicable law or agreed to in writing, software
10*b04680f1SMatt Gilbride// distributed under the License is distributed on an "AS IS" BASIS,
11*b04680f1SMatt Gilbride// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*b04680f1SMatt Gilbride// See the License for the specific language governing permissions and
13*b04680f1SMatt Gilbride// limitations under the License.
14*b04680f1SMatt Gilbride
15*b04680f1SMatt Gilbridepackage {
16*b04680f1SMatt Gilbride    default_applicable_licenses: ["external_jsr305_license"],
17*b04680f1SMatt Gilbride}
18*b04680f1SMatt Gilbride
19*b04680f1SMatt Gilbride// Added automatically by a large-scale-change that took the approach of
20*b04680f1SMatt Gilbride// 'apply every license found to every target'. While this makes sure we respect
21*b04680f1SMatt Gilbride// every license restriction, it may not be entirely correct.
22*b04680f1SMatt Gilbride//
23*b04680f1SMatt Gilbride// e.g. GPL in an MIT project might only apply to the contrib/ directory.
24*b04680f1SMatt Gilbride//
25*b04680f1SMatt Gilbride// Please consider splitting the single license below into multiple licenses,
26*b04680f1SMatt Gilbride// taking care not to lose any license_kind information, and overriding the
27*b04680f1SMatt Gilbride// default license using the 'licenses: [...]' property on targets as needed.
28*b04680f1SMatt Gilbride//
29*b04680f1SMatt Gilbride// For unused files, consider creating a 'fileGroup' with "//visibility:private"
30*b04680f1SMatt Gilbride// to attach the license to, and including a comment whether the files may be
31*b04680f1SMatt Gilbride// used in the current project.
32*b04680f1SMatt Gilbride// See: http://go/android-license-faq
33*b04680f1SMatt Gilbridelicense {
34*b04680f1SMatt Gilbride    name: "external_jsr305_license",
35*b04680f1SMatt Gilbride    visibility: [":__subpackages__"],
36*b04680f1SMatt Gilbride    license_kinds: [
37*b04680f1SMatt Gilbride        "SPDX-license-identifier-BSD",
38*b04680f1SMatt Gilbride        "SPDX-license-identifier-CC-BY",
39*b04680f1SMatt Gilbride    ],
40*b04680f1SMatt Gilbride    license_text: [
41*b04680f1SMatt Gilbride        "NOTICE",
42*b04680f1SMatt Gilbride    ],
43*b04680f1SMatt Gilbride}
44*b04680f1SMatt Gilbride
45*b04680f1SMatt Gilbridejava_library_static {
46*b04680f1SMatt Gilbride    name: "jsr305",
47*b04680f1SMatt Gilbride    host_supported: true,
48*b04680f1SMatt Gilbride    hostdex: true,
49*b04680f1SMatt Gilbride    sdk_version: "core_current",
50*b04680f1SMatt Gilbride    apex_available: [
51*b04680f1SMatt Gilbride        "//apex_available:anyapex",
52*b04680f1SMatt Gilbride        "//apex_available:platform",
53*b04680f1SMatt Gilbride    ],
54*b04680f1SMatt Gilbride    min_sdk_version: "14",
55*b04680f1SMatt Gilbride    srcs: ["ri/src/main/java/**/*.java"],
56*b04680f1SMatt Gilbride    // b/267831518: Pin tradefed and dependencies to Java 11.
57*b04680f1SMatt Gilbride    java_version: "11",
58*b04680f1SMatt Gilbride    target: {
59*b04680f1SMatt Gilbride        windows: {
60*b04680f1SMatt Gilbride            enabled: true,
61*b04680f1SMatt Gilbride        },
62*b04680f1SMatt Gilbride    },
63*b04680f1SMatt Gilbride}
64*b04680f1SMatt Gilbride
65*b04680f1SMatt Gilbride// Compatibility name
66*b04680f1SMatt Gilbridejava_library_host {
67*b04680f1SMatt Gilbride    name: "jsr305lib",
68*b04680f1SMatt Gilbride    static_libs: ["jsr305"],
69*b04680f1SMatt Gilbride}
70