Changed dprecated annotationProcessorGeneratedSourcesDirectory to generatedSourceOutputDirectory.

This commit is contained in:
Erik C. Thauvin 2021-06-18 17:53:31 -07:00
parent b224e1fc99
commit 5dce160cf1
5 changed files with 68 additions and 282 deletions

View file

@ -27,12 +27,12 @@ dependencies {
}
tasks.withType(JavaCompile) {
options.annotationProcessorGeneratedSourcesDirectory = file("${projectDir}/src/generated/java")
options.generatedSourceOutputDirectory.set(file("${projectDir}/src/generated/java"))
options.compilerArgs += [ "-Asemver.project.dir=$projectDir" ]
}
task runExample(type: JavaExec) {
group = 'application'
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.example.Example'
mainClass.set('com.example.Example')
}