-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace deprecated github-pages with git-publish #782
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to execute ./gradlew gitPublishPush -Dorg.ajoberstar.grgit.auth.username=$GITHUB_TOKEN
(as stated here) but that fails with an error:
:documentation:asciidoctor
:prepareDocsForUploadToGhPages
:createCurrentDocsFolder SKIPPED
:gitPublishReset FAILED
:gitPublishClose FAILED
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':gitPublishReset'.
> Ambiguous method overloading for method org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider#<init>.
Cannot resolve which method to invoke for [class java.lang.String, null] due to overlapping prototypes between:
[class java.lang.String, class java.lang.String]
[class java.lang.String, class [C]
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':gitPublishClose'.
> Could not get unknown property 'repo' for object of type org.ajoberstar.gradle.git.publish.GitPublishExtension.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
==============================================================================
BUILD FAILED
Seems to be a known bug: ajoberstar/grgit#153.
build.gradle
Outdated
@@ -3,12 +3,14 @@ import java.text.SimpleDateFormat | |||
buildscript { | |||
repositories { | |||
// mavenLocal() | |||
jcenter() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need jcenter because we already use Gradle's plugin repo below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
Overview
Replace deprecated github-pages with git-publish
CloudBees Jenkins build task needs to be changed, @marcphilipp
Replace "githubPages" with "gitPublish".
I hereby agree to the terms of the JUnit Contributor License Agreement.