blob: c93719a92c61e57c9bffd998d04af92334e82ff3 [file] [log] [blame]
Sal Savage3d28fff2024-02-13 16:04:59 -08001// Copyright (C) 2024 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
15package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19java_library_host {
20 name: "BluetoothLintChecker",
21 srcs: [
22 "checks/src/**/*.java",
23 "checks/src/**/*.kt",
24 ],
25 plugins: ["auto_service_plugin"],
26 libs: [
27 "auto_service_annotations",
28 "lint_api",
29 ],
30 kotlincflags: ["-Xjvm-default=all"],
31}
32
33java_test_host {
34 name: "BluetoothLintCheckerTest",
Sal Savage3d28fff2024-02-13 16:04:59 -080035 srcs: [
36 "checks/tests/**/*.java",
37 "checks/tests/**/*.kt",
38 ],
39 static_libs: [
40 "BluetoothLintChecker",
41 "junit",
42 "lint",
43 "lint_tests",
44 ],
45 test_options: {
46 unit_test: true,
47 tradefed_options: [
48 {
49 // lint bundles in some classes that were built with older versions
50 // of libraries, and no longer load. Since tradefed tries to load
51 // all classes in the jar to look for tests, it crashes loading them.
52 // Exclude these classes from tradefed's search.
53 name: "exclude-paths",
54 value: "org/apache",
55 },
56 {
57 name: "exclude-paths",
58 value: "META-INF",
59 },
60 ],
61 },
62}