1*6626518dSAndrew Vuong// Copyright (C) 2023 The Android Open Source Project 2*6626518dSAndrew Vuong// 3*6626518dSAndrew Vuong// Licensed under the Apache License, Version 2.0 (the "License"); 4*6626518dSAndrew Vuong// you may not use this file except in compliance with the License. 5*6626518dSAndrew Vuong// You may obtain a copy of the License at 6*6626518dSAndrew Vuong// 7*6626518dSAndrew Vuong// http://www.apache.org/licenses/LICENSE-2.0 8*6626518dSAndrew Vuong// 9*6626518dSAndrew Vuong// Unless required by applicable law or agreed to in writing, software 10*6626518dSAndrew Vuong// distributed under the License is distributed on an "AS IS" BASIS, 11*6626518dSAndrew Vuong// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*6626518dSAndrew Vuong// See the License for the specific language governing permissions and 13*6626518dSAndrew Vuong// limitations under the License. 14*6626518dSAndrew Vuong 15*6626518dSAndrew Vuongpackage { 16*6626518dSAndrew Vuong default_applicable_licenses: ["external_apache_velocity_engine_license"], 17*6626518dSAndrew Vuong} 18*6626518dSAndrew Vuong 19*6626518dSAndrew Vuonglicense { 20*6626518dSAndrew Vuong name: "external_apache_velocity_engine_license", 21*6626518dSAndrew Vuong visibility: [":__subpackages__"], 22*6626518dSAndrew Vuong license_kinds: [ 23*6626518dSAndrew Vuong "SPDX-license-identifier-Apache-2.0", 24*6626518dSAndrew Vuong "SPDX-license-identifier-BSD", 25*6626518dSAndrew Vuong ], 26*6626518dSAndrew Vuong license_text: [ 27*6626518dSAndrew Vuong "LICENSE", 28*6626518dSAndrew Vuong "NOTICE", 29*6626518dSAndrew Vuong ], 30*6626518dSAndrew Vuong} 31*6626518dSAndrew Vuong 32*6626518dSAndrew Vuongjava_library { 33*6626518dSAndrew Vuong name: "apache-velocity-engine-core", 34*6626518dSAndrew Vuong srcs: ["velocity-engine-core/src/main/java/**/*.java", 35*6626518dSAndrew Vuong // Manually generated code as javacc is not availiable for AOSP build 36*6626518dSAndrew Vuong // mvn && cp -r velocity-engine-core/target/generated-srcs . 37*6626518dSAndrew Vuong "generated-sources/**/*.java"], 38*6626518dSAndrew Vuong exclude_srcs: ["velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/JarResourceLoader.java", 39*6626518dSAndrew Vuong "velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/DataSourceResourceLoader.java"], 40*6626518dSAndrew Vuong java_resource_dirs: ["velocity-engine-core/src/main/resources"], 41*6626518dSAndrew Vuong sdk_version: "current", 42*6626518dSAndrew Vuong min_sdk_version: "33", 43*6626518dSAndrew Vuong static_libs: [ 44*6626518dSAndrew Vuong "apache-commons-lang", 45*6626518dSAndrew Vuong "apache-commons-io", 46*6626518dSAndrew Vuong "slf4j-jdk14", 47*6626518dSAndrew Vuong ], 48*6626518dSAndrew Vuong java_version: "1.8", 49*6626518dSAndrew Vuong apex_available: [ 50*6626518dSAndrew Vuong "//apex_available:platform", 51*6626518dSAndrew Vuong "com.android.ondevicepersonalization", 52*6626518dSAndrew Vuong ], 53*6626518dSAndrew Vuong visibility: [ 54*6626518dSAndrew Vuong "//external/apache-velocity-engine", 55*6626518dSAndrew Vuong "//packages/modules/OnDevicePersonalization:__subpackages__", 56*6626518dSAndrew Vuong ], 57*6626518dSAndrew Vuong lint: { 58*6626518dSAndrew Vuong warning_checks: ["SuspiciousIndentation"], 59*6626518dSAndrew Vuong }, 60*6626518dSAndrew Vuong errorprone: { 61*6626518dSAndrew Vuong javacflags: [ 62*6626518dSAndrew Vuong "-Xep:ReturnValueIgnored:OFF", 63*6626518dSAndrew Vuong ], 64*6626518dSAndrew Vuong }, 65*6626518dSAndrew Vuong} 66