groovy-extensions/gradle/compile/groovy.gradle

34 lines
749 B
Groovy
Raw Normal View History

2021-11-04 16:28:10 +01:00
apply plugin: 'groovy'
dependencies {
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
}