1// Copyright 2019 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
15// The goal of this minimal target is to define some useful things
16// with extremely few dependencies (i.e. just JUnit).  Potentially
17// this target could house a lot of our interface definitions just
18// so we can share those without too much fear of dependency hell.
19package {
20    default_applicable_licenses: ["Android-Apache-2.0"],
21}
22
23java_library_host {
24    name: "tradefed-lite",
25    // Restrict visibility to only those targets that need to access it.
26    visibility: [
27        "//tools/tradefederation/core",
28        "//tools/tradefederation/core/isolation",
29    ],
30    defaults: ["tradefed_defaults"],
31    srcs: [
32        "./**/*.java",
33    ],
34    static_libs: [
35        "junit",
36    ],
37    // b/267831518: Pin tradefed and dependencies to Java 11.
38    java_version: "11",
39}
40