Skip to content

Commit 9f54085

Browse files
committed
Drop Google auto-service
Google auto-service didn't generate the service file on the last release
1 parent a8ddab4 commit 9f54085

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

core/pom.xml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@
2323
<artifactId>jackson-databind</artifactId>
2424
</dependency>
2525

26-
<dependency>
27-
<groupId>com.google.auto.service</groupId>
28-
<artifactId>auto-service</artifactId>
29-
<optional>true</optional>
30-
</dependency>
31-
3226
<dependency>
3327
<groupId>com.palantir.javapoet</groupId>
3428
<artifactId>javapoet</artifactId>
@@ -45,4 +39,16 @@
4539
</dependency>
4640
</dependencies>
4741

42+
<build>
43+
<plugins>
44+
<plugin>
45+
<groupId>org.apache.maven.plugins</groupId>
46+
<artifactId>maven-compiler-plugin</artifactId>
47+
<configuration>
48+
<!-- Disable annotation processing for ourselves. -->
49+
<compilerArgument>-proc:none</compilerArgument>
50+
</configuration>
51+
</plugin>
52+
</plugins>
53+
</build>
4854
</project>

core/src/main/java/com/cosium/json_schema_to_java_record/AnnotationProcessor.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22

33
import com.cosium.json_schema_to_java_record_api.GenerateRecordsFromJsonSchemas;
44
import com.cosium.logging.annotation_processor.AbstractLoggingProcessor;
5-
import com.google.auto.service.AutoService;
65
import java.util.Set;
76
import java.util.concurrent.CopyOnWriteArraySet;
87
import java.util.function.Predicate;
98
import java.util.stream.Collectors;
109
import javax.annotation.processing.Filer;
1110
import javax.annotation.processing.ProcessingEnvironment;
12-
import javax.annotation.processing.Processor;
1311
import javax.annotation.processing.RoundEnvironment;
1412
import javax.lang.model.SourceVersion;
1513
import javax.lang.model.element.TypeElement;
@@ -20,7 +18,6 @@
2018
/**
2119
* @author Réda Housni Alaoui
2220
*/
23-
@AutoService(Processor.class)
2421
public class AnnotationProcessor extends AbstractLoggingProcessor {
2522

2623
private static final Logger LOGGER = LoggerFactory.getLogger(AnnotationProcessor.class);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
com.cosium.json_schema_to_java_record.AnnotationProcessor

pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@
5555
<scope>import</scope>
5656
</dependency>
5757

58-
<dependency>
59-
<groupId>com.google.auto.service</groupId>
60-
<artifactId>auto-service</artifactId>
61-
<version>1.1.1</version>
62-
</dependency>
63-
6458
<dependency>
6559
<groupId>com.palantir.javapoet</groupId>
6660
<artifactId>javapoet</artifactId>

0 commit comments

Comments
 (0)