1// Copyright (C) 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
15java_plugin {
16    name: "java_api_finder",
17
18    static_libs: [
19        "java_api_used_by_mainline_module",
20    ],
21}
22
23java_library_host {
24    name: "java_api_used_by_mainline_module",
25
26    srcs: ["src/main/**/*.java"],
27
28    static_libs: [
29        "//external/error_prone:error_prone_core",
30        "//external/dagger2:dagger2-auto-service",
31    ],
32
33    plugins: [
34        "//external/dagger2:dagger2-auto-service",
35    ],
36
37    javacflags: ["-verbose"],
38}
39
40java_test_host {
41    name: "JavaApiUsedByMainlineModuleTest",
42    srcs: ["src/test/**/JavaApiUsedByMainlineModuleTest.java"],
43    java_resource_dirs: ["src/test/res"],
44    java_resources: [":java_api_used_by_mainline_module_testdata"],
45    static_libs: [
46        "java_api_used_by_mainline_module",
47        "error_prone_test_helpers",
48        "hamcrest-library",
49        "hamcrest",
50        "platform-test-annotations",
51        "junit",
52    ],
53}
54
55filegroup {
56    name: "java_api_used_by_mainline_module_testdata",
57    path: "src/test/res",
58    srcs: ["src/test/res/**/*.java"],
59}
60