Added test example.

This commit is contained in:
Erik C. Thauvin 2019-05-25 14:30:33 -07:00
parent 2102691d37
commit c920adf2c5
12 changed files with 512 additions and 0 deletions

View file

@ -0,0 +1,33 @@
plugins {
id 'java'
id 'application'
id 'com.github.ben-manes.versions' version '0.21.0'
}
// ./gradlew run
// ./gradlew runExample
defaultTasks 'run'
final def semverProcessor = 'net.thauvin.erik:semver:1.2.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.annotationProcessorGeneratedSourcesDirectory = file("${projectDir}/src/generated/java")
mainClassName = 'com.example.Example'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
annotationProcessor semverProcessor
implementation semverProcessor
}
tasks.withType(JavaCompile) {
options.compilerArgs += [ "-Asemver.project.dir=${projectDir}/example" ]
}