1// 2// Copyright (C) 2017 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 default_team: "trendy_team_java_core_libraries", 19 default_applicable_licenses: ["external_slf4j_license"], 20} 21 22// Added automatically by a large-scale-change that took the approach of 23// 'apply every license found to every target'. While this makes sure we respect 24// every license restriction, it may not be entirely correct. 25// 26// e.g. GPL in an MIT project might only apply to the contrib/ directory. 27// 28// Please consider splitting the single license below into multiple licenses, 29// taking care not to lose any license_kind information, and overriding the 30// default license using the 'licenses: [...]' property on targets as needed. 31// 32// For unused files, consider creating a 'fileGroup' with "//visibility:private" 33// to attach the license to, and including a comment whether the files may be 34// used in the current project. 35// 36// large-scale-change included anything that looked like it might be a license 37// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. 38// 39// Please consider removing redundant or irrelevant files from 'license_text:'. 40// See: http://go/android-license-faq 41license { 42 name: "external_slf4j_license", 43 visibility: [":__subpackages__"], 44 license_kinds: [ 45 "SPDX-license-identifier-Apache-2.0", 46 "SPDX-license-identifier-GPL", 47 "SPDX-license-identifier-LGPL", 48 "SPDX-license-identifier-MIT", 49 ], 50 license_text: [ 51 "LICENSE.txt", 52 "NOTICE", 53 ], 54} 55 56java_library { 57 name: "slf4j-jdk14", 58 host_supported: true, 59 hostdex: true, 60 srcs: [ 61 "slf4j-api/src/main/java/**/*.java", 62 "slf4j-jdk14/src/main/java/**/*.java", 63 ], 64 exclude_srcs: [ 65 "slf4j-api/src/main/java/org/slf4j/impl/**/*.java", 66 ], 67 68 sdk_version: "core_current", 69 apex_available: [ 70 "com.android.ondevicepersonalization", 71 ], 72 visibility: [ 73 // SLF4J is used by mockftpserver, both of them are used in tests only. 74 "//external/mockftpserver", 75 "//libcore", 76 // SLF4J is used by apache-velocity-engine, a dependency of the OnDevicePersonalization module. 77 "//external/apache-velocity-engine", 78 "//packages/modules/OnDevicePersonalization:__subpackages__", 79 ], 80} 81 82java_library_host { 83 name: "slf4j-nop", 84 srcs: [ 85 "slf4j-api/src/main/java/**/*.java", 86 "slf4j-nop/src/main/java/**/*.java", 87 ], 88 exclude_srcs: [ 89 "slf4j-api/src/main/java/org/slf4j/impl/**/*.java", 90 ], 91 target: { 92 windows: { 93 enabled: true, 94 }, 95 }, 96} 97