Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14f8366

Browse files
committed
Migrated to use 'org.ajoberstar.git-publish' plugin
This is because the gh pages plugin is deprecated (2688)
1 parent ab0b480 commit 14f8366

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

gradle/documentation.gradle

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ import springfox.gradlebuild.BuildInfo
22
import springfox.gradlebuild.utils.ProjectDefinitions
33

44
apply 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

4749
task publishDocs {
48-
dependsOn publishGhPages
50+
dependsOn gitPublishPush
4951
}
5052

5153
task 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

0 commit comments

Comments
 (0)