apply plugin: 'groovy' dependencies { implementation libs.groovy.core } java { toolchain { languageVersion = JavaLanguageVersion.of(17) } modularity.inferModulePath.set(true) withSourcesJar() withJavadocJar() } tasks.withType(GroovyCompile) { options.compilerArgs if (!options.compilerArgs.contains("-processor")) { options.compilerArgs.add('-proc:none') } } /* https://github.com/gradle/gradle/issues/15283 task groovydocJar(type: Jar) { dependsOn groovydoc from groovydoc.destinationDir archiveClassifier.set('groovydoc') } tasks.assemble.dependsOn(tasks.groovydocJar) */