From ecc9752f90a0bd90470e1bca8a1984cc94d16159 Mon Sep 17 00:00:00 2001 From: James Fredley Date: Fri, 20 Sep 2024 22:53:56 -0400 Subject: [PATCH] fix gdoc task --- gradle/docs.gradle | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gradle/docs.gradle b/gradle/docs.gradle index dcafb4fe057..8cb2207a870 100644 --- a/gradle/docs.gradle +++ b/gradle/docs.gradle @@ -60,7 +60,7 @@ tasks.register("stubs") { tasks.register('docs') { group = 'documentation' - outputs.dir(project.layout.buildDirectory.dir('docs')) + outputs.dir(project.layout.buildDirectory.dir('docs').get()) } task javadoc(type:Javadoc, group: 'documentation') { @@ -113,14 +113,14 @@ tasks.register('groovydoc', Groovydoc) { } tasks.register("fetchGrailsDocsSource", FetchGrailsDocSourceTask) { - checkoutDir = project.layout.buildDirectory.dir("checkout") + checkoutDir = project.layout.buildDirectory.dir("checkout").get() grailsDocBranch = "7.0.x" } task gdoc(type: GradleBuild, dependsOn: ["groovydoc", "fetchGrailsDocsSource"], group: 'documentation') { startParameter.useEmptySettings() dir = grailsDocSrc - tasks = ["clean", "assemble"] + tasks = [] doFirst { ext.oldGrailsHome = System.getProperty("grails.home") @@ -140,8 +140,8 @@ task gdoc(type: GradleBuild, dependsOn: ["groovydoc", "fetchGrailsDocsSource"], } copy { - from file("${buildDir}/grails-docs-src/build/docs") - into project.layout.buildDirectory.dir("docs/api") + from layout.buildDirectory.dir("grails-docs-src/build/docs").get() + into layout.buildDirectory.dir("docs/api").get() } } }