blob: a927f53e3b5f597dc71f10e31490092b76ea057d [file] [log] [blame]
Jeff Sharkey4d1d7b52020-05-04 15:31:07 -06001
Bob Badoure539dba2021-02-12 17:07:05 -08002package {
3 // See: http://go/android-license-faq
4 // A large-scale-change added 'default_applicable_licenses' to import
5 // all of the 'license_kinds' from "frameworks_base_license"
6 // to get the below license kinds:
7 // SPDX-license-identifier-Apache-2.0
8 default_applicable_licenses: ["frameworks_base_license"],
9}
10
Jeff Sharkey4d1d7b52020-05-04 15:31:07 -060011java_plugin {
12 name: "error_prone_android_framework",
13
14 static_libs: [
15 "error_prone_android_framework_lib",
16 ],
17}
18
19java_library_host {
20 name: "error_prone_android_framework_lib",
21
22 srcs: ["java/**/*.java"],
23
24 static_libs: [
25 "//external/error_prone:error_prone_core",
Colin Crossdf1cdec2020-06-25 21:07:43 -070026 ],
27
28 libs: [
29 "//external/auto:auto_service_annotations",
Jeff Sharkey4d1d7b52020-05-04 15:31:07 -060030 ],
31
32 plugins: [
Colin Crossdf1cdec2020-06-25 21:07:43 -070033 "//external/auto:auto_service_plugin",
Jeff Sharkey4d1d7b52020-05-04 15:31:07 -060034 ],
Jeff Sharkey4d1d7b52020-05-04 15:31:07 -060035}
Jeff Sharkey86ba6082020-06-23 23:16:59 -060036
37java_test_host {
38 name: "error_prone_android_framework_test",
Jeff Sharkey86ba6082020-06-23 23:16:59 -060039 srcs: ["tests/java/**/*.java"],
40 java_resource_dirs: ["tests/res"],
41 java_resources: [":error_prone_android_framework_testdata"],
42 static_libs: [
Julien Desprezb8c9a052021-02-24 02:07:45 +000043 "truth-prebuilt",
44 "kxml2-2.3.0",
Jeff Sharkey86ba6082020-06-23 23:16:59 -060045 "error_prone_android_framework_lib",
46 "error_prone_test_helpers",
47 "hamcrest-library",
48 "hamcrest",
49 "platform-test-annotations",
50 "junit",
51 ],
Julien Desprezb8c9a052021-02-24 02:07:45 +000052 test_options: {
53 unit_test: true,
54 },
Jeff Sharkey86ba6082020-06-23 23:16:59 -060055}
56
57filegroup {
58 name: "error_prone_android_framework_testdata",
59 path: "tests/res",
60 srcs: ["tests/res/**/*.java"],
61}