From 175620e04cb5e9a32ae241e218bd6f91897a7fb9 Mon Sep 17 00:00:00 2001 From: Riccardo Ciovati Date: Tue, 17 Jul 2018 10:50:59 +0200 Subject: [PATCH] Support Gradle incremental annotation processing (#101) --- .../src/main/java/com/soundcloud/lightcycle/LightCycle.java | 2 +- .../resources/META-INF/gradle/incremental.annotation.processors | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 lightcycle-processor/src/main/resources/META-INF/gradle/incremental.annotation.processors diff --git a/lightcycle-api/src/main/java/com/soundcloud/lightcycle/LightCycle.java b/lightcycle-api/src/main/java/com/soundcloud/lightcycle/LightCycle.java index ac5d06b..440e6f5 100644 --- a/lightcycle-api/src/main/java/com/soundcloud/lightcycle/LightCycle.java +++ b/lightcycle-api/src/main/java/com/soundcloud/lightcycle/LightCycle.java @@ -6,7 +6,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -@Retention(RetentionPolicy.SOURCE) +@Retention(RetentionPolicy.CLASS) @Target(ElementType.FIELD) public @interface LightCycle { } diff --git a/lightcycle-processor/src/main/resources/META-INF/gradle/incremental.annotation.processors b/lightcycle-processor/src/main/resources/META-INF/gradle/incremental.annotation.processors new file mode 100644 index 0000000..fe26376 --- /dev/null +++ b/lightcycle-processor/src/main/resources/META-INF/gradle/incremental.annotation.processors @@ -0,0 +1 @@ +com.soundcloud.lightcycle.LightCycleProcessor,aggregating