1// Copyright (C) 2023 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 15package { 16 default_applicable_licenses: ["external_apache_velocity_engine_license"], 17} 18 19license { 20 name: "external_apache_velocity_engine_license", 21 visibility: [":__subpackages__"], 22 license_kinds: [ 23 "SPDX-license-identifier-Apache-2.0", 24 "SPDX-license-identifier-BSD", 25 ], 26 license_text: [ 27 "LICENSE", 28 "NOTICE", 29 ], 30} 31 32java_library { 33 name: "apache-velocity-engine-core", 34 srcs: ["velocity-engine-core/src/main/java/**/*.java", 35 // Manually generated code as javacc is not availiable for AOSP build 36 // mvn && cp -r velocity-engine-core/target/generated-srcs . 37 "generated-sources/**/*.java"], 38 exclude_srcs: ["velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/JarResourceLoader.java", 39 "velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/DataSourceResourceLoader.java"], 40 java_resource_dirs: ["velocity-engine-core/src/main/resources"], 41 sdk_version: "current", 42 min_sdk_version: "33", 43 static_libs: [ 44 "apache-commons-lang", 45 "apache-commons-io", 46 "slf4j-jdk14", 47 ], 48 java_version: "1.8", 49 apex_available: [ 50 "//apex_available:platform", 51 "com.android.ondevicepersonalization", 52 ], 53 visibility: [ 54 "//external/apache-velocity-engine", 55 "//packages/modules/OnDevicePersonalization:__subpackages__", 56 ], 57 lint: { 58 warning_checks: ["SuspiciousIndentation"], 59 }, 60 errorprone: { 61 javacflags: [ 62 "-Xep:ReturnValueIgnored:OFF", 63 ], 64 }, 65} 66