• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2020 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// Build the common utility library for use device-side
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20java_library_static {
21    name: "compatibility-common-util-devicesidelib",
22    sdk_version: "current",
23
24    srcs: ["src/**/*.java"],
25
26    static_libs: [
27        "error_prone_annotations",
28        "guava",
29        "junit",
30    ],
31}
32
33java_library {
34    name: "compatibility-common-util-lib",
35    visibility: [
36        "//test/suite_harness/common/util",
37        "//platform_testing/libraries/compatibility-common-util/tests",
38        "//platform_testing/libraries/sts-common-util/util",
39    ],
40    srcs: ["src/**/*.java"],
41    host_supported: true,
42    libs: [
43        "error_prone_annotations",
44        "junit",
45        "guava",
46        "json-prebuilt",
47        "platform-test-annotations",
48        "kxml2-2.3.0",
49    ],
50    // b/267831518: Pin tradefed and dependencies to Java 11.
51    java_version: "11",
52}
53