2021-11-04 16:28:10 +01:00
|
|
|
apply plugin: 'groovy'
|
|
|
|
|
|
|
|
dependencies {
|
2022-04-28 17:48:38 +02:00
|
|
|
implementation "org.apache.groovy:groovy:${project.property('groovy.version')}"
|
2021-11-04 16:28:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
compileGroovy {
|
2022-04-28 19:07:22 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2021-11-04 16:28:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
compileTestGroovy {
|
2022-04-28 19:07:22 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2021-11-04 16:28:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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')
|
|
|
|
}
|