Skip to content

Commit 8f17e4c

Browse files
eamonnmcmanusGoogle Java Core Libraries
authored andcommitted
Fix Gradle incremental compilation for AutoValue and AutoFactory.
The previous attempt to do so left out AutoFactory. It was also wrong because the new `annotationProcessorPath` entry was added to the path for compiling tests, not the processor itself. Fixes #1071 (again). RELNOTES=Fixed Gradle incremental compilation. PiperOrigin-RevId: 368851801
1 parent ad8add1 commit 8f17e4c

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

factory/pom.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,6 @@
8383
<artifactId>auto-service-annotations</artifactId>
8484
<version>${auto-service.version}</version>
8585
</dependency>
86-
<dependency>
87-
<groupId>net.ltgt.gradle.incap</groupId>
88-
<artifactId>incap</artifactId>
89-
<version>0.3</version>
90-
<scope>provided</scope>
91-
</dependency>
9286
<dependency>
9387
<groupId>net.ltgt.gradle.incap</groupId>
9488
<artifactId>incap-processor</artifactId>
@@ -165,6 +159,11 @@
165159
<artifactId>auto-value</artifactId>
166160
<version>${auto-value.version}</version>
167161
</path>
162+
<path>
163+
<groupId>net.ltgt.gradle.incap</groupId>
164+
<artifactId>incap</artifactId>
165+
<version>0.3</version>
166+
</path>
168167
</annotationProcessorPaths>
169168
</configuration>
170169
<dependencies>

value/processor/pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@
168168
<artifactId>auto-service</artifactId>
169169
<version>${auto-service.version}</version>
170170
</path>
171+
<path>
172+
<groupId>net.ltgt.gradle.incap</groupId>
173+
<artifactId>incap-processor</artifactId>
174+
<version>0.3</version>
175+
</path>
171176
</annotationProcessorPaths>
172177
</configuration>
173178
<executions>
@@ -185,11 +190,6 @@
185190
<artifactId>auto-service</artifactId>
186191
<version>${auto-service.version}</version>
187192
</path>
188-
<path>
189-
<groupId>net.ltgt.gradle.incap</groupId>
190-
<artifactId>incap-processor</artifactId>
191-
<version>0.3</version>
192-
</path>
193193
</annotationProcessorPaths>
194194
</configuration>
195195
</execution>

0 commit comments

Comments
 (0)