I got a ProGuard warning when trying to create an release of my Android project that prevents the build from completing successfully.
Warning: the com.google.googlejavaformat.java.filer.FormattingJavaFileObject $ 1 $ 1 library class extends or implements the com.google.common.io.CharSink program class
After a bit of digging and running, gradlew :app:dependencies
I found that google-java-format is enabled because it is used by AutoFactory , which was recently added to the project.
+--- com.google.auto.factory:auto-factory:1.0-beta5
| +--- com.google.auto:auto-common:0.6 (*)
| +--- com.google.auto.value:auto-value:1.1 -> 1.3
| +--- com.google.googlejavaformat:google-java-format:1.1
AutoFactory is only included in my file build.gradle
as an annotation processor, so I don’t understand why it is even processed by ProGuard.
provided "com.google.auto.factory:auto-factory:1.0-beta5"
annotationProcessor "com.google.auto.factory:auto-factory:1.0-beta5"
-dontwarn com.google.gooogleformat.**
ProGuard, , . .
, , -libraryjars
.
ProGuard build.gradle
, ProGuard ? , ProGuard .