Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

FAILURE: Build failed with an exception. #153

Closed
huey735 opened this issue Aug 18, 2019 · 5 comments · Fixed by #155
Closed

FAILURE: Build failed with an exception. #153

huey735 opened this issue Aug 18, 2019 · 5 comments · Fixed by #155

Comments

@huey735
Copy link
Contributor

huey735 commented Aug 18, 2019

I get the following error when I run './gradlew build' inside my /bisq-docs folder.
I used this script to install JAVA: https://github.com/bisq-network/bisq/blob/master/scripts/install_java.sh

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':asciidoctor'.
> Could not resolve all files for configuration ':asciidoctor'.
   > Could not resolve org.codehaus.groovy:groovy-all:2.3.9.
     Required by:
         project : > org.asciidoctor:asciidoctorj-groovy-dsl:1.0.0.Alpha2
      > Could not resolve org.codehaus.groovy:groovy-all:2.3.9.
         > Could not get resource 'https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.3.9/groovy-all-2.3.9.pom'.
            > Could not GET 'https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.3.9/groovy-all-2.3.9.pom'.
               > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
1 actionable task: 1 executed

@m52go pointed me to this thread but it's beyond my understanding.

@m52go
Copy link
Contributor

m52go commented Aug 22, 2019

@huey735 I was able to reproduce this issue on a fresh install of Ubuntu. Try #155 and see if it works for you.

@huey735
Copy link
Contributor Author

huey735 commented Aug 22, 2019

Thanks @m52go it worked!

@m52go m52go closed this as completed Aug 22, 2019
@z16166
Copy link

z16166 commented Jan 5, 2020

The build exception still exists for the latest master branch.

happy@ubuntu:~/bisq-docs$ gradle wrapper --gradle-version 2.10 -i
Starting Build
Settings evaluated using settings file '/master/settings.gradle'.
Projects loaded. Root project using build file '/home/happy/bisq-docs/build.gradle'.
Included projects: [root project 'bisq-docs']
Evaluating root project 'bisq-docs' using build file '/home/happy/bisq-docs/build.gradle'.
[Asciidoctor] asciidoctorj: 1.6.2
[Asciidoctor] asciidoctorj-groovy-dsl: 1.6.0
You are using one or more deprecated Asciidoctor task or plugins. These will be removed in a future release. To help you migrate we have compiled some tips for you based upon your current usage:

  - 'org.asciidoctor.convert' is deprecated. When you have time please switch over to 'org.asciidoctor.jvm.convert'.
  - jcenter() is no longer added by default. If you relied on this behaviour in the past, please add jcenter() to the repositories block.


All projects evaluated.
Selected primary task 'wrapper' from project :
Tasks to be executed: [task ':wrapper']
:wrapper (Thread[main,5,main]) started.
:wrapper
Skipping task ':wrapper' as it is up-to-date (took 0.037 secs).
:wrapper UP-TO-DATE
:wrapper (Thread[main,5,main]) completed. Took 0.043 secs.

BUILD SUCCESSFUL

Total time: 2.06 secs

This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.10/userguide/gradle_daemon.html
happy@ubuntu:~/bisq-docs$ ./gradlew build -i
Starting Build
Settings evaluated using settings file '/master/settings.gradle'.
Projects loaded. Root project using build file '/home/happy/bisq-docs/build.gradle'.
Included projects: [root project 'bisq-docs']
Evaluating root project 'bisq-docs' using build file '/home/happy/bisq-docs/build.gradle'.
[Asciidoctor] asciidoctorj: 1.6.2
[Asciidoctor] asciidoctorj-groovy-dsl: 1.6.0
You are using one or more deprecated Asciidoctor task or plugins. These will be removed in a future release. To help you migrate we have compiled some tips for you based upon your current usage:

  - 'org.asciidoctor.convert' is deprecated. When you have time please switch over to 'org.asciidoctor.jvm.convert'.
  - jcenter() is no longer added by default. If you relied on this behaviour in the past, please add jcenter() to the repositories block.


All projects evaluated.
Selected primary task 'build' from project :
Tasks to be executed: [task ':asciidoctor', task ':assemble', task ':check', task ':build']
:asciidoctor (Thread[main,5,main]) started.
:asciidoctor
Executing task ':asciidoctor' (up-to-date check took 0.1 secs) due to:
  No history is available.
:asciidoctor FAILED
:asciidoctor (Thread[main,5,main]) completed. Took 0.173 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':asciidoctor'.
> org/gradle/internal/scripts/ScriptOrigin

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

Total time: 2.307 secs

@m52go
Copy link
Contributor

m52go commented Jan 10, 2020

@z16166 hi, what version of OpenJDK are you using? If newer than OpenJDK 10, Gradle version might be the issue.

Please see my PR:
#190

@m52go m52go reopened this Jan 10, 2020
@m52go
Copy link
Contributor

m52go commented Jan 16, 2020

Closing, as the PR mentioned above as a solution is now merged. Please make a new issue if the problem persists.

@m52go m52go closed this as completed Jan 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants