Skip to content

Commit 6e790e4

Browse files
committed
Fix documentation publishing task
* Use delete task for removing a folder * Copy reference documentation from and to the right folder
1 parent cda2cfe commit 6e790e4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

release/build.gradle

+6-6
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ assemble.dependsOn assembleDocumentation
4848
/**
4949
* Clone the website
5050
*/
51-
task removeDocsWebsite( type: Exec ) {
52-
workingDir project.buildDir
53-
commandLine 'rm', '-rf', 'docs-website'
51+
task removeDocsWebsite( type: Delete ) {
52+
delete "${project.buildDir}/docs-website/"
5453
}
5554

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

8686
// Reference Documentation
8787
copy {
88-
from "${documentationDir}/reference"
89-
into "${docWebsiteReactiveFolder}/reference"
88+
from "${documentationDir}/asciidoc/reference/html_single"
89+
into "${docWebsiteReactiveFolder}/reference/html_single"
9090
}
9191
}
9292
}

0 commit comments

Comments
 (0)