You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by jd...@apache.org on 2026/10/07 17:26:20 UTC

(grails-core) 07/07: Reduce Forge's documentation script to what Groovydoc needs

This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a commit to branch feat/forge-grails-composite
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit 27971429e8f633dae72bf1f9fff9194b5cd78257
Author: James Daugherty <jd...@jdresources.net>
AuthorDate: Wed Oct 7 13:16:23 2026 -0400

    Reduce Forge's documentation script to what Groovydoc needs
    
    The script declares the Groovy that runs Groovydoc and the standard titles. Groovydoc is given the
    javaVersion it was held back from when Forge pinned Groovy 3, the documentation configuration is no
    longer added to each Groovydoc task's classpath, which the groovydoc plugin already composes, and
    groovy-dateutil is gone, as Groovydoc never used it.
---
 grails-forge/gradle/doc-config.gradle | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/grails-forge/gradle/doc-config.gradle b/grails-forge/gradle/doc-config.gradle
index e45394c66d..cfc6962f39 100644
--- a/grails-forge/gradle/doc-config.gradle
+++ b/grails-forge/gradle/doc-config.gradle
@@ -19,24 +19,15 @@
 
 apply plugin: 'org.apache.grails.buildsrc.groovydoc'
 
-groovydocEnhancer {
-    javaVersionEnabled = false
-}
-
 dependencies {
-    // The `documentation` configuration is registered by the buildsrc.groovydoc
-    // plugin and is independent of compileClasspath/testRuntimeClasspath. Apply
-    // grails-bom here so the unversioned groovy-* artifacts below resolve through
-    // groovy-bom.
+    // the Groovy that runs Groovydoc, for the groovydoc plugin's documentation configuration
     documentation platform("org.apache.grails:grails-bom:$projectVersion")
-    documentation 'org.apache.groovy:groovy-templates'
-    documentation 'org.apache.groovy:groovy-dateutil'
     documentation 'org.apache.groovy:groovy-ant'
     documentation 'org.apache.groovy:groovy-groovydoc'
+    documentation 'org.apache.groovy:groovy-templates'
 }
 
 tasks.withType(Groovydoc).configureEach { Groovydoc gdoc ->
-    gdoc.classpath += project.configurations.documentation
     gdoc.windowTitle = "${project.findProperty('pomArtifactId') ?: project.name} - $projectVersion"
     gdoc.docTitle = "${project.findProperty('pomArtifactId') ?: project.name} - $projectVersion"
 }