Kun Niu | 7fa228a | 2019-06-27 11:07:31 -0700 | [diff] [blame] | 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 | |
| 15 | java_plugin { |
| 16 | name: "java_api_finder", |
| 17 | |
| 18 | static_libs: [ |
| 19 | "java_api_used_by_mainline_module", |
| 20 | ], |
| 21 | } |
| 22 | |
| 23 | java_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 Cross | 84052f2 | 2020-06-25 20:36:30 -0700 | [diff] [blame] | 30 | ], |
| 31 | |
| 32 | libs: [ |
| 33 | "//external/auto:auto_service_annotations", |
Kun Niu | 7fa228a | 2019-06-27 11:07:31 -0700 | [diff] [blame] | 34 | ], |
| 35 | |
| 36 | plugins: [ |
Colin Cross | 84052f2 | 2020-06-25 20:36:30 -0700 | [diff] [blame] | 37 | "//external/auto:auto_service_plugin", |
Kun Niu | 7fa228a | 2019-06-27 11:07:31 -0700 | [diff] [blame] | 38 | ], |
| 39 | |
| 40 | javacflags: ["-verbose"], |
| 41 | } |
| 42 | |
| 43 | java_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 | |
| 58 | filegroup { |
| 59 | name: "java_api_used_by_mainline_module_testdata", |
| 60 | path: "src/test/res", |
| 61 | srcs: ["src/test/res/**/*.java"], |
| 62 | } |