groovy-extensions/gradle/compile/groovy-dynamic.gradle

28 lines
475 B
Groovy
Raw Permalink Normal View History

2022-06-17 10:53:57 +02:00
apply plugin: 'groovy'
dependencies {
implementation libs.groovy.core
testImplementation libs.groovy.core
}
compileGroovy {
}
compileTestGroovy {
}
tasks.withType(GroovyCompile) {
if (!options.compilerArgs.contains("-processor")) {
options.compilerArgs.add('-proc:none')
}
}
task groovydocJar(type: Jar, dependsOn: 'groovydoc') {
from groovydoc.destinationDir
archiveClassifier.set('groovydoc')
}
artifacts {
archives groovydocJar
}