2021-02-25 17:01:47 +01:00
|
|
|
apply plugin: 'groovy'
|
|
|
|
|
|
|
|
dependencies {
|
2022-01-18 20:00:47 +01:00
|
|
|
implementation "org.apache.groovy:groovy:${project.property('groovy.version')}"
|
2021-02-25 17:01:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
compileGroovy {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
|
|
}
|
|
|
|
|
|
|
|
compileTestGroovy {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(GroovyCompile) {
|
|
|
|
options.compilerArgs
|
|
|
|
if (!options.compilerArgs.contains("-processor")) {
|
|
|
|
options.compilerArgs << '-proc:none'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task groovydocJar(type: Jar, dependsOn: 'groovydoc') {
|
|
|
|
from groovydoc.destinationDir
|
|
|
|
archiveClassifier.set('javadoc')
|
|
|
|
}
|