1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
Description: Disables the github-pages plugin
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/opentest4j/build.gradle
+++ b/opentest4j/build.gradle
@@ -8,7 +8,6 @@
id 'maven'
id 'signing'
id 'com.diffplug.gradle.spotless' version '3.23.0'
- id 'org.ajoberstar.github-pages' version '1.7.2'
}
Date buildTimeAndDate = new Date()
@@ -219,20 +218,7 @@
def docsVersion = project.version.contains('SNAPSHOT') ? 'snapshot' : project.version
def docsDir = new File(buildDir, 'ghpages-docs')
-task prepareDocsForUploadToGhPages(dependsOn: [javadoc], type: Copy) {
- outputs.dir docsDir
-
- from("$buildDir/docs") {
- include 'javadoc/**'
- }
- into "${docsDir}/${docsVersion}"
- filesMatching('javadoc/**') { fileCopyDetails ->
- fileCopyDetails.path = fileCopyDetails.path.replace('javadoc/', 'api/')
- }
- includeEmptyDirs = false
-}
-
-task createCurrentDocsFolder(dependsOn: prepareDocsForUploadToGhPages, type: Copy) {
+task createCurrentDocsFolder(type: Copy) {
outputs.dir "${docsDir}/current"
from "${docsDir}/${docsVersion}"
@@ -240,22 +226,3 @@
}
createCurrentDocsFolder.onlyIf { project.hasProperty('replaceCurrentDocs') }
-
-githubPages {
- repoUri = 'https://github.com/ota4j-team/opentest4j.git'
-
- credentials {
- username = project.hasProperty('githubToken') ? project.githubToken : ''
- password = ''
- }
-
- pages {
- from docsDir
- into "docs"
- }
-
- deleteExistingFiles = false
-}
-
-prepareGhPages.dependsOn(prepareDocsForUploadToGhPages)
-prepareGhPages.dependsOn(createCurrentDocsFolder)
|