2021-02-25 17:01:47 +01:00
apply plugin: 'groovy'
dependencies {
2022-11-10 15:27:43 +01:00
implementation libs . groovy
2021-02-25 17:01:47 +01:00
}
compileGroovy {
2022-04-29 17:14:15 +02:00
sourceCompatibility = JavaVersion . VERSION_17
targetCompatibility = JavaVersion . VERSION_17
2021-02-25 17:01:47 +01:00
}
compileTestGroovy {
2022-04-29 17:14:15 +02:00
sourceCompatibility = JavaVersion . VERSION_17
targetCompatibility = JavaVersion . VERSION_17
2021-02-25 17:01:47 +01:00
}
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' )
}
2022-11-10 15:27:43 +01:00
// BUG! exception in phase 'instruction selection' in source unit 'graphics/graphics-pdfbox-groovy/src/main/groovy/org/xbib/graphics/pdfbox/groovy/render/RowRenderer.groovy' unexpected NullPointerException
//compileGroovy.groovyOptions.configurationScript = rootProject.file('gradle/compile/groovyc.groovy')