Skip to content

Commit

Permalink
Fix Gradle incremental compilation for AutoValue and AutoFactory.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
eamonnmcmanus authored and Google Java Core Libraries committed Apr 16, 2021
1 parent ad8add1 commit 8f17e4c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
11 changes: 5 additions & 6 deletions factory/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,6 @@
<artifactId>auto-service-annotations</artifactId>
<version>${auto-service.version}</version>
</dependency>
<dependency>
<groupId>net.ltgt.gradle.incap</groupId>
<artifactId>incap</artifactId>
<version>0.3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.ltgt.gradle.incap</groupId>
<artifactId>incap-processor</artifactId>
Expand Down Expand Up @@ -165,6 +159,11 @@
<artifactId>auto-value</artifactId>
<version>${auto-value.version}</version>
</path>
<path>
<groupId>net.ltgt.gradle.incap</groupId>
<artifactId>incap</artifactId>
<version>0.3</version>
</path>
</annotationProcessorPaths>
</configuration>
<dependencies>
Expand Down
10 changes: 5 additions & 5 deletions value/processor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@
<artifactId>auto-service</artifactId>
<version>${auto-service.version}</version>
</path>
<path>
<groupId>net.ltgt.gradle.incap</groupId>
<artifactId>incap-processor</artifactId>
<version>0.3</version>
</path>
</annotationProcessorPaths>
</configuration>
<executions>
Expand All @@ -185,11 +190,6 @@
<artifactId>auto-service</artifactId>
<version>${auto-service.version}</version>
</path>
<path>
<groupId>net.ltgt.gradle.incap</groupId>
<artifactId>incap-processor</artifactId>
<version>0.3</version>
</path>
</annotationProcessorPaths>
</configuration>
</execution>
Expand Down

0 comments on commit 8f17e4c

Please sign in to comment.