1 2package { 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 11java_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", 26 ], 27 28 libs: [ 29 "//external/auto:auto_service_annotations", 30 ], 31 32 plugins: [ 33 "//external/auto:auto_service_plugin", 34 ], 35} 36 37java_test_host { 38 name: "error_prone_android_framework_test", 39 srcs: ["tests/java/**/*.java"], 40 java_resource_dirs: ["tests/res"], 41 java_resources: [":error_prone_android_framework_testdata"], 42 static_libs: [ 43 "truth-prebuilt", 44 "kxml2-2.3.0", 45 "error_prone_android_framework_lib", 46 "error_prone_test_helpers", 47 "hamcrest-library", 48 "hamcrest", 49 "platform-test-annotations", 50 "junit", 51 ], 52 test_options: { 53 unit_test: true, 54 }, 55} 56 57filegroup { 58 name: "error_prone_android_framework_testdata", 59 path: "tests/res", 60 srcs: ["tests/res/**/*.java"], 61} 62