File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ buildscript {
1616 classpath " org.jfrog.buildinfo:build-info-extractor-gradle:4.7.5"
1717 classpath " org.asciidoctor:asciidoctor-gradle-plugin:1.5.8.1"
1818 classpath " org.ajoberstar:gradle-git:1.7.2"
19+ classpath ' org.ajoberstar:gradle-git-publish:1.0.1'
1920 }
2021}
2122
Original file line number Diff line number Diff line change @@ -2,11 +2,13 @@ import springfox.gradlebuild.BuildInfo
22import springfox.gradlebuild.utils.ProjectDefinitions
33
44apply plugin : " org.asciidoctor.convert"
5- apply plugin : ' org.ajoberstar.github-pages '
5+ apply plugin : ' org.ajoberstar.git-publish '
66
7- githubPages {
8- deleteExistingFiles = false
9- pages {
7+ gitPublish {
8+ preserve {
9+ include ' **/*'
10+ }
11+ contents {
1012 from " ${ buildDir} /all-docs"
1113 }
1214}
@@ -45,7 +47,7 @@ task allDocs {
4547}
4648
4749task publishDocs {
48- dependsOn publishGhPages
50+ dependsOn gitPublishPush
4951}
5052
5153task createReleaseDocs (type : Exec , dependsOn : allDocs) {
@@ -84,4 +86,4 @@ task releaseDocs {
8486 dependsOn createReleaseDocs, publishDocs
8587}
8688
87- publishGhPages . dependsOn allDocs
89+ gitPublishPush . dependsOn allDocs
You can’t perform that action at this time.
0 commit comments