blob: 47fb50de86ba49d58c27290fc3bee8a0e28d0bad [file] [log] [blame]
Colin Cross621c96c2017-12-08 14:03:24 -08001// Copyright (C) 2016 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//
15
16//
17// Build support for jcommander within the Android Open Source Project
18// See https://source.android.com/source/building.html for more information
19//
20
Bob Badour5cc892a2021-02-12 20:49:55 -080021package {
22 default_applicable_licenses: ["external_jcommander_license"],
23}
24
25// Added automatically by a large-scale-change that took the approach of
26// 'apply every license found to every target'. While this makes sure we respect
27// every license restriction, it may not be entirely correct.
28//
29// e.g. GPL in an MIT project might only apply to the contrib/ directory.
30//
31// Please consider splitting the single license below into multiple licenses,
32// taking care not to lose any license_kind information, and overriding the
33// default license using the 'licenses: [...]' property on targets as needed.
34//
35// For unused files, consider creating a 'fileGroup' with "//visibility:private"
36// to attach the license to, and including a comment whether the files may be
37// used in the current project.
38//
39// large-scale-change included anything that looked like it might be a license
40// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
41//
42// Please consider removing redundant or irrelevant files from 'license_text:'.
43// See: http://go/android-license-faq
44license {
45 name: "external_jcommander_license",
46 visibility: [":__subpackages__"],
47 license_kinds: [
48 "SPDX-license-identifier-Apache-2.0",
49 "SPDX-license-identifier-MIT",
50 ],
51 license_text: [
52 "license.txt",
53 "notice.md",
54 ],
55}
56
Colin Cross621c96c2017-12-08 14:03:24 -080057java_library_static {
58 name: "jcommander",
59 host_supported: true,
60 hostdex: true,
Jiyong Parke6504512018-01-31 10:58:33 +090061 sdk_version: "core_current",
Colin Cross621c96c2017-12-08 14:03:24 -080062
63 srcs: ["src/main/**/*.java"],
64 target: {
65 android: {
66 // Filter out PathConverter since android is missing java.nio.file APIs.
67 exclude_srcs: ["src/main/**/PathConverter.java"],
68 },
69 },
Andreas Gampec75d5822018-03-05 20:04:19 -080070
71 errorprone: {
72 javacflags: [
73 "-Xep:CollectionIncompatibleType:WARN", // b/74215153
74 ],
75 }
Colin Cross621c96c2017-12-08 14:03:24 -080076}