graphics/gradle/compile/groovy.gradle

31 lines
915 B
Groovy
Raw Permalink Normal View History

2021-02-25 17:01:47 +01:00
apply plugin: 'groovy'
dependencies {
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')
}
// 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')