Changed dprecated annotationProcessorGeneratedSourcesDirectory to generatedSourceOutputDirectory.
This commit is contained in:
parent
b224e1fc99
commit
5dce160cf1
5 changed files with 68 additions and 282 deletions
|
@ -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')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue