Skip to content

Commit

Permalink
fix gdoc task
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesfredley committed Sep 21, 2024
1 parent e48e6a2 commit ecc9752
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gradle/docs.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down Expand Up @@ -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")
Expand All @@ -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()
}
}
}
Expand Down

0 comments on commit ecc9752

Please sign in to comment.