Skip to content

Commit

Permalink
build: use Groovy version from the BOM for groovydoc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
matrei committed Jan 14, 2025
1 parent 04110df commit 9ec73b2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions gradle/documentation-config.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
apply plugin: 'groovy'

configurations.register('documentation')

dependencies {
documentation "org.apache.groovy:groovy-groovydoc:4.0.24"
documentation "org.apache.groovy:groovy-ant:4.0.24"
documentation platform("org.grails:grails-bom:$grailsVersion")
documentation 'org.apache.groovy:groovy-groovydoc'
documentation 'org.apache.groovy:groovy-ant'
}

tasks.register('cleanDocs', Delete) {
group = 'documentation'
delete(rootProject.layout.buildDirectory.dir('docs'))
}

tasks.register('groovydoc', Groovydoc) {
tasks.withType(Groovydoc).configureEach {
group = 'documentation'
description = 'Copies Groovy API Documentation for all supporting projects'
Set<Project> groovyDocProjects = rootProject.subprojects.findAll {
Expand Down

0 comments on commit 9ec73b2

Please sign in to comment.