Switched annotation processor off in compileJava task.

Fixed package name typo.
This commit is contained in:
Erik C. Thauvin 2016-01-16 13:24:48 -08:00
parent f178de0fb0
commit 468772c3d1
3 changed files with 10 additions and 6 deletions

View file

@ -9,7 +9,7 @@ defaultTasks 'run'
version = '0.1' version = '0.1'
mainClassName = 'net.thauvin.erik.annotpoctest.Example' mainClassName = 'net.thauvin.erik.annotproctest.Example'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' [compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories { repositories {
@ -19,11 +19,15 @@ repositories {
} }
dependencies { dependencies {
//compile "com.beust:version-processor:0.2" compile "com.beust:version-processor:0.2"
} }
annotationProcessor { annotationProcessor {
library "com.beust:version-processor:0.2" library "com.beust:version-processor:0.2"
processor "com.beust.version.VersionProcessor" processor "com.beust.version.VersionProcessor"
} }
compileJava {
options.compilerArgs << '-proc:none'
}

View file

@ -1,4 +1,4 @@
package net.thauvin.erik.annotpoctest; package net.thauvin.erik.annotproctest;
public class GeneratedVersion { public class GeneratedVersion {
public static final String VERSION = "0.1"; public static final String VERSION = "0.1";

View file

@ -1,4 +1,4 @@
package net.thauvin.erik.annotpoctest; package net.thauvin.erik.annotproctest;
import com.beust.version.Version; import com.beust.version.Version;
@ -7,4 +7,4 @@ class Example {
public static void main(String[] argv) throws Exception { public static void main(String[] argv) throws Exception {
System.out.println("Version: " + GeneratedVersion.VERSION); System.out.println("Version: " + GeneratedVersion.VERSION);
} }
} }