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: "staledataclass-annotation-processor",
13    processor_class: "android.processor.staledataclass.StaleDataclassProcessor",
14
15    java_resources: [
16        "META-INF/**/*",
17    ],
18    srcs: [
19        "src/**/*.java",
20        "src/**/*.kt",
21    ],
22    static_libs: [
23        "codegen-version-info",
24    ],
25    javacflags: [
26        "--add-modules=jdk.compiler",
27        "--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
28        "--add-exports jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
29        "--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
30        "--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
31    ],
32
33    use_tools_jar: true,
34}
35