blob: c1d2235e3324168d569fe995fe292d3971074220 [file] [log] [blame]
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "frameworks_base_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_base_license"],
}
java_plugin {
name: "error_prone_android_framework",
static_libs: [
"error_prone_android_framework_lib",
],
}
java_library_host {
name: "error_prone_android_framework_lib",
srcs: ["java/**/*.java"],
static_libs: [
"annotations",
"framework-annotations-lib",
"//external/error_prone:error_prone_core",
],
libs: [
"//external/auto:auto_service_annotations",
],
plugins: [
"//external/auto:auto_service_plugin",
],
}
java_test_host {
name: "error_prone_android_framework_test",
srcs: ["tests/java/**/*.java"],
java_resource_dirs: ["tests/res"],
java_resources: [":error_prone_android_framework_testdata"],
static_libs: [
"truth",
"kxml2-2.3.0",
"compile-testing-prebuilt",
"error_prone_android_framework_lib",
"error_prone_test_helpers",
"google_java_format",
"hamcrest-library",
"hamcrest",
"platform-test-annotations",
"junit",
],
test_options: {
unit_test: true,
},
}
filegroup {
name: "error_prone_android_framework_testdata",
path: "tests/res",
srcs: ["tests/res/**/*.java"],
}