2021-11-04 16:28:10 +01:00
|
|
|
apply plugin: 'groovy'
|
|
|
|
|
|
|
|
dependencies {
|
2021-12-12 20:27:59 +01:00
|
|
|
implementation "org.codehaus.groovy:groovy:${project.property('groovy.version')}"
|
2021-11-04 16:28:10 +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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-19 00:37:39 +01:00
|
|
|
task groovydocJar(type: Jar) {
|
|
|
|
dependsOn groovydoc
|
2021-11-04 16:28:10 +01:00
|
|
|
from groovydoc.destinationDir
|
2021-12-19 00:37:39 +01:00
|
|
|
archiveClassifier.set('groovydoc')
|
|
|
|
}
|
|
|
|
tasks.assemble.dependsOn(tasks.groovydocJar)
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives groovydocJar
|
2021-11-04 16:28:10 +01:00
|
|
|
}
|