Skip to content

Commit

Permalink
Make AutoFactory an isolating annotation processor in Gradle
Browse files Browse the repository at this point in the history
RELNOTES=Gradle: `@AutoFactory` is now an isolating annotation processor

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=248771150
  • Loading branch information
ronshapiro committed May 27, 2019
1 parent c148ee4 commit 0b58d04
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions factory/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@
<version>1.0-rc4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.ltgt.gradle.incap</groupId>
<artifactId>incap</artifactId>
<version>0.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.googlejavaformat</groupId>
<artifactId>google-java-format</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,15 @@
import javax.lang.model.util.Elements;
import javax.lang.model.util.Types;
import javax.tools.Diagnostic.Kind;
import net.ltgt.gradle.incap.IncrementalAnnotationProcessor;
import net.ltgt.gradle.incap.IncrementalAnnotationProcessorType;

/**
* The annotation processor that generates factories for {@link AutoFactory} annotations.
*
* @author Gregory Kick
*/
@IncrementalAnnotationProcessor(IncrementalAnnotationProcessorType.ISOLATING)
@AutoService(Processor.class)
public final class AutoFactoryProcessor extends AbstractProcessor {
private FactoryDescriptorGenerator factoryDescriptorGenerator;
Expand Down

0 comments on commit 0b58d04

Please sign in to comment.