blob: da07d37f0be4484eaefa51a0e1abb2437cbcafd2 [file] [log] [blame]
Bob Badoura073d6e2021-02-12 15:23:11 -08001package {
2 default_applicable_licenses: ["external_apache-commons-compress_license"],
3}
4
5// Added automatically by a large-scale-change that took the approach of
6// 'apply every license found to every target'. While this makes sure we respect
7// every license restriction, it may not be entirely correct.
8//
9// e.g. GPL in an MIT project might only apply to the contrib/ directory.
10//
11// Please consider splitting the single license below into multiple licenses,
12// taking care not to lose any license_kind information, and overriding the
13// default license using the 'licenses: [...]' property on targets as needed.
14//
15// For unused files, consider creating a 'fileGroup' with "//visibility:private"
16// to attach the license to, and including a comment whether the files may be
17// used in the current project.
18//
19// large-scale-change included anything that looked like it might be a license
20// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
21//
22// Please consider removing redundant or irrelevant files from 'license_text:'.
23// See: http://go/android-license-faq
24license {
25 name: "external_apache-commons-compress_license",
26 visibility: [":__subpackages__"],
27 license_kinds: [
28 "SPDX-license-identifier-Apache-2.0",
29 "SPDX-license-identifier-BSD",
30 "SPDX-license-identifier-MIT",
31 "legacy_unencumbered",
32 ],
33 license_text: [
34 "LICENSE.txt",
35 "NOTICE.txt",
36 ],
37}
38
Jeff Sharkey9d9b0dd2018-09-28 14:47:04 -060039java_library {
40 name: "apache-commons-compress",
Krzysztof Kosiński43906612022-12-14 04:20:49 +000041 host_supported: true,
Jeff Sharkey9d9b0dd2018-09-28 14:47:04 -060042 srcs: [
43 "src/main/java/**/*.java",
44 "src/stub/java/**/*.java",
45 ],
Krzysztof Kosiński43906612022-12-14 04:20:49 +000046 static_libs: [
47 "brotli-java",
48 "xz-java",
49 ],
50 java_version: "1.7", // Needed for Pack200, which is removed in newer versions
Jeff Sharkey9d9b0dd2018-09-28 14:47:04 -060051 sdk_version: "current",
Jooyung Hane67b1d62022-06-24 14:56:16 +090052 // TODO(b/237039251) use "apex_inherit" when Java modules support it
53 min_sdk_version: "29",
Jeff Sharkey9d9b0dd2018-09-28 14:47:04 -060054}