Skip to content

Commit

Permalink
Fix documentation publishing task
Browse files Browse the repository at this point in the history
* Use delete task for removing a folder
* Copy reference documentation from and to the right folder
  • Loading branch information
DavideD committed Mar 25, 2022
1 parent cda2cfe commit 6e790e4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions release/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ assemble.dependsOn assembleDocumentation
/**
* Clone the website
*/
task removeDocsWebsite( type: Exec ) {
workingDir project.buildDir
commandLine 'rm', '-rf', 'docs-website'
task removeDocsWebsite( type: Delete ) {
delete "${project.buildDir}/docs-website/"
}

task cloneDocsWebsite( type: Exec, dependsOn: removeDocsWebsite ) {
// Depending on compileJava makes sure that the buildDir exists. Otherwise this task will fail.
task cloneDocsWebsite( type: Exec, dependsOn: [removeDocsWebsite, compileJava] ) {
workingDir project.buildDir
commandLine 'git', 'clone', docPublishRepoUri, '-b', docPublishBranch, '--sparse', '--depth', '1', 'docs-website'
}
Expand Down Expand Up @@ -85,8 +85,8 @@ task updateDocumentation( dependsOn: [assembleDocumentation, sparseCheckoutDocum

// Reference Documentation
copy {
from "${documentationDir}/reference"
into "${docWebsiteReactiveFolder}/reference"
from "${documentationDir}/asciidoc/reference/html_single"
into "${docWebsiteReactiveFolder}/reference/html_single"
}
}
}
Expand Down

0 comments on commit 6e790e4

Please sign in to comment.