You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
|
|
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: "staledataclass-annotation-processor",
|
|
processor_class: "android.processor.staledataclass.StaleDataclassProcessor",
|
|
|
|
java_resources: [
|
|
"META-INF/**/*",
|
|
],
|
|
srcs: [
|
|
"src/**/*.java",
|
|
"src/**/*.kt",
|
|
],
|
|
static_libs: [
|
|
"codegen-version-info",
|
|
],
|
|
// The --add-modules/exports flags below don't work for kotlinc yet, so pin this module to Java language level 8 (see b/139342589):
|
|
java_version: "1.8",
|
|
openjdk9: {
|
|
javacflags: [
|
|
"--add-modules=jdk.compiler",
|
|
"--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
|
|
"--add-exports jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
|
|
"--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
|
|
"--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
|
|
],
|
|
},
|
|
|
|
use_tools_jar: true,
|
|
}
|