From bf51d1d826a21fa5b428c914383395add5390df2 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sat, 27 Jul 2019 14:10:16 -0700 Subject: [PATCH] Updated compiler option syntax. --- examples/annotation-processor/java/build.gradle | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/annotation-processor/java/build.gradle b/examples/annotation-processor/java/build.gradle index e5f26f5..28133c7 100644 --- a/examples/annotation-processor/java/build.gradle +++ b/examples/annotation-processor/java/build.gradle @@ -14,8 +14,6 @@ mainClassName = 'com.example.Example' defaultTasks 'run' -compileJava.options.annotationProcessorGeneratedSourcesDirectory = file("${projectDir}/src/generated/java") - def semverProcessor = "net.thauvin.erik:semver:1.2.0" dependencies { @@ -24,6 +22,7 @@ dependencies { } tasks.withType(JavaCompile) { + options.annotationProcessorGeneratedSourcesDirectory = file("${projectDir}/src/generated/java") if (JavaVersion.current().isJava12Compatible()) { options.compilerArgs += [ "-Asemver.project.dir=$projectDir" ] }