From 1faa275f9fb7d59060a5d760cf939ffe15bb0f57 Mon Sep 17 00:00:00 2001 From: cael Date: Fri, 31 May 2019 08:28:26 +0100 Subject: [PATCH] removing autoservice --- build.gradle | 4 +--- .../uk/co/caeldev/cassitory/CassitoryEntityProcessor.java | 2 -- .../META-INF/services/javax.annotation.processing.Processor | 1 + 3 files changed, 2 insertions(+), 5 deletions(-) create mode 100644 src/main/resources/META-INF/services/javax.annotation.processing.Processor diff --git a/build.gradle b/build.gradle index 5739282..4f0ad44 100644 --- a/build.gradle +++ b/build.gradle @@ -27,10 +27,8 @@ dependencies { implementation "com.datastax.cassandra:cassandra-driver-mapping:3.7.1" implementation "com.datastax.cassandra:cassandra-driver-core:3.7.1" implementation "com.squareup:javapoet:1.11.1" - implementation "com.google.auto.service:auto-service:1.0-rc5" implementation "org.apache.commons:commons-text:1.6" - testImplementation "org.junit.jupiter:junit-jupiter-api:5.4.1" testImplementation "org.junit.jupiter:junit-jupiter-params:5.4.1" testImplementation "org.assertj:assertj-core:3.12.2" @@ -156,7 +154,7 @@ publishing { signing { sign publishing.publications.mavenJava - required = { gradle.taskGraph.hasTask("uploadArchives") && !version.endsWith("SNAPSHOT") } + required = { gradle.taskGraph.hasTask("publish") && !version.endsWith("SNAPSHOT") } } wrapper { diff --git a/src/main/java/uk/co/caeldev/cassitory/CassitoryEntityProcessor.java b/src/main/java/uk/co/caeldev/cassitory/CassitoryEntityProcessor.java index c884b15..9ab9b8d 100644 --- a/src/main/java/uk/co/caeldev/cassitory/CassitoryEntityProcessor.java +++ b/src/main/java/uk/co/caeldev/cassitory/CassitoryEntityProcessor.java @@ -1,6 +1,5 @@ package uk.co.caeldev.cassitory; -import com.google.auto.service.AutoService; import com.google.common.collect.Lists; import com.squareup.javapoet.JavaFile; import uk.co.caeldev.cassitory.generators.CreatorGenerator; @@ -20,7 +19,6 @@ @SupportedAnnotationTypes("uk.co.caeldev.cassitory.CassitoryEntity") @SupportedSourceVersion(SourceVersion.RELEASE_8) -@AutoService(Processor.class) public class CassitoryEntityProcessor extends AbstractProcessor { private Filer filer; diff --git a/src/main/resources/META-INF/services/javax.annotation.processing.Processor b/src/main/resources/META-INF/services/javax.annotation.processing.Processor new file mode 100644 index 0000000..d1bd368 --- /dev/null +++ b/src/main/resources/META-INF/services/javax.annotation.processing.Processor @@ -0,0 +1 @@ +uk.co.caeldev.cassitory.CassitoryEntityProcessor \ No newline at end of file