Loading Android.bp +8 −0 Original line number Diff line number Diff line Loading @@ -289,6 +289,14 @@ java_defaults { "staledataclass-annotation-processor", "error_prone_android_framework", ], // Exports needed for staledataclass-annotation-processor, see b/139342589. javacflags: [ "-J--add-modules=jdk.compiler", "-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED", "-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED", "-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED", "-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", ], required: [ // TODO(b/120066492): remove default_television.xml when the build system // propagates "required" properly. Loading tests/Codegen/Android.bp +8 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,14 @@ android_test { plugins: [ "staledataclass-annotation-processor", ], // Exports needed for staledataclass-annotation-processor, see b/139342589. javacflags: [ "-J--add-modules=jdk.compiler", "-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED", "-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED", "-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED", "-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", ], static_libs: [ "junit", "hamcrest", Loading tools/processors/staledataclass/Android.bp +7 −11 Original line number Diff line number Diff line Loading @@ -22,9 +22,6 @@ java_plugin { 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", Loading @@ -32,7 +29,6 @@ java_plugin { "--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, } tools/processors/staledataclass/src/android/processor/staledataclass/StaleDataclassProcessor.kt +1 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ * limitations under the License. */ @file:Suppress("JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE") package android.processor.staledataclass Loading Loading
Android.bp +8 −0 Original line number Diff line number Diff line Loading @@ -289,6 +289,14 @@ java_defaults { "staledataclass-annotation-processor", "error_prone_android_framework", ], // Exports needed for staledataclass-annotation-processor, see b/139342589. javacflags: [ "-J--add-modules=jdk.compiler", "-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED", "-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED", "-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED", "-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", ], required: [ // TODO(b/120066492): remove default_television.xml when the build system // propagates "required" properly. Loading
tests/Codegen/Android.bp +8 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,14 @@ android_test { plugins: [ "staledataclass-annotation-processor", ], // Exports needed for staledataclass-annotation-processor, see b/139342589. javacflags: [ "-J--add-modules=jdk.compiler", "-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED", "-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED", "-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED", "-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", ], static_libs: [ "junit", "hamcrest", Loading
tools/processors/staledataclass/Android.bp +7 −11 Original line number Diff line number Diff line Loading @@ -22,9 +22,6 @@ java_plugin { 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", Loading @@ -32,7 +29,6 @@ java_plugin { "--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, }
tools/processors/staledataclass/src/android/processor/staledataclass/StaleDataclassProcessor.kt +1 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ * limitations under the License. */ @file:Suppress("JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE") package android.processor.staledataclass Loading