29 lines
741 B
Groovy
29 lines
741 B
Groovy
apply plugin: 'groovy'
|
|
|
|
dependencies {
|
|
implementation libs.groovy.core
|
|
testImplementation libs.groovy.core
|
|
}
|
|
|
|
compileGroovy {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
groovyOptions.configurationScript = rootProject.file('gradle/compile/groovyc.groovy')
|
|
}
|
|
|
|
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')
|
|
}
|