blob: 7df73565b8867bd64f42cec51350736d15c79063 [file] [log] [blame]
Kun Niu7fa228a2019-06-27 11:07:31 -07001// 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",
Colin Cross84052f22020-06-25 20:36:30 -070030 ],
31
32 libs: [
33 "//external/auto:auto_service_annotations",
Kun Niu7fa228a2019-06-27 11:07:31 -070034 ],
35
36 plugins: [
Colin Cross84052f22020-06-25 20:36:30 -070037 "//external/auto:auto_service_plugin",
Kun Niu7fa228a2019-06-27 11:07:31 -070038 ],
39
40 javacflags: ["-verbose"],
41}
42
43java_test_host {
44 name: "JavaApiUsedByMainlineModuleTest",
45 srcs: ["src/test/**/JavaApiUsedByMainlineModuleTest.java"],
46 java_resource_dirs: ["src/test/res"],
47 java_resources: [":java_api_used_by_mainline_module_testdata"],
48 static_libs: [
49 "java_api_used_by_mainline_module",
50 "error_prone_test_helpers",
51 "hamcrest-library",
52 "hamcrest",
53 "platform-test-annotations",
54 "junit",
55 ],
56}
57
58filegroup {
59 name: "java_api_used_by_mainline_module_testdata",
60 path: "src/test/res",
61 srcs: ["src/test/res/**/*.java"],
62}