1// Copyright (C) 2021 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: ["Android-Apache-2.0"], 17} 18 19java_library_host { 20 name: "bazel-result-reporter", 21 srcs: [ 22 "src/com/android/tradefed/result/BazelExitCodeResultReporter.java", 23 "src/com/android/tradefed/result/BazelXmlResultReporter.java" 24 ], 25 // b/267831518: Pin tradefed and dependencies to Java 11. 26 java_version: "11", 27 libs: [ 28 "tradefed", 29 ], 30} 31 32java_test_host { 33 name: "bazel-result-reporter-tests", 34 srcs: [ 35 "javatests/com/android/tradefed/result/BazelExitCodeResultReporterTest.java", 36 "javatests/com/android/tradefed/result/BazelXmlResultReporterTest.java" 37 ], 38 static_libs: [ 39 "bazel-result-reporter", 40 "jimfs", 41 "tradefed", 42 ], 43 test_options: { 44 unit_test: true, 45 }, 46} 47