From 242f66535e1d2041d962e633c6238e4bd9007906 Mon Sep 17 00:00:00 2001 From: Parker Kuivila Date: Fri, 26 Jan 2018 13:08:50 -0500 Subject: [PATCH 1/2] Update annotation processor for Gradle 3 This fixes a `Annotation processors must be explicitly declared now.` error when trying to use Gradle 3 https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html#annotationProcessor_config https://stackoverflow.com/questions/42993587/setting-explict-annotation-processor --- library/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/library/build.gradle b/library/build.gradle index f842ed8..0853aad 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -23,6 +23,7 @@ dependencies { compile 'com.github.frankiesardo:auto-parcel:0.3.1' compile 'com.google.auto.value:auto-value:1.1' annotationProcessor 'com.github.frankiesardo:auto-parcel-processor:0.3.1' + compile 'com.github.frankiesardo:auto-parcel-processor:0.3.1' testCompile 'junit:junit:4.12' testCompile 'org.mockito:mockito-all:1.9.5' From dd2cb479505e2d8d8e77078437a21b24096d8ca4 Mon Sep 17 00:00:00 2001 From: Parker Kuivila Date: Fri, 26 Jan 2018 13:20:39 -0500 Subject: [PATCH 2/2] Whoops, changed wrong line --- library/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/build.gradle b/library/build.gradle index 0853aad..9ddd929 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -21,9 +21,9 @@ dependencies { compile 'com.android.support:support-annotations:25.3.1' compile 'com.gu:option:1.3' compile 'com.github.frankiesardo:auto-parcel:0.3.1' - compile 'com.google.auto.value:auto-value:1.1' + compileOnly 'com.google.auto.value:auto-value:1.1' + annotationProcessor 'com.google.auto.value:auto-value:1.1' annotationProcessor 'com.github.frankiesardo:auto-parcel-processor:0.3.1' - compile 'com.github.frankiesardo:auto-parcel-processor:0.3.1' testCompile 'junit:junit:4.12' testCompile 'org.mockito:mockito-all:1.9.5'