27 lines
659 B
Groovy
27 lines
659 B
Groovy
apply plugin: 'groovy'
|
|
|
|
dependencies {
|
|
implementation "org.apache.groovy:groovy:${project.property('groovy.version')}"
|
|
}
|
|
|
|
compileGroovy {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
compileTestGroovy {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
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')
|
|
}
|