2021-11-09 14:08:25 +01:00
|
|
|
apply plugin: 'groovy'
|
|
|
|
|
|
|
|
dependencies {
|
2022-02-19 23:05:50 +01:00
|
|
|
implementation libs.groovy.core
|
2021-11-09 14:08:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
compileGroovy {
|
2023-05-21 13:16:00 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2021-11-09 14:08:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
compileTestGroovy {
|
2023-05-21 13:16:00 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2021-11-09 14:08:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(GroovyCompile) {
|
|
|
|
options.compilerArgs
|
|
|
|
if (!options.compilerArgs.contains("-processor")) {
|
2022-02-19 23:05:50 +01:00
|
|
|
options.compilerArgs.add('-proc:none')
|
2021-11-09 14:08:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-19 00:47:12 +01:00
|
|
|
task groovydocJar(type: Jar) {
|
|
|
|
dependsOn groovydoc
|
2021-11-09 14:08:25 +01:00
|
|
|
from groovydoc.destinationDir
|
2021-12-19 00:47:12 +01:00
|
|
|
archiveClassifier.set('groovydoc')
|
|
|
|
}
|
|
|
|
tasks.assemble.dependsOn(tasks.groovydocJar)
|