Skip to content
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

gradle build failed #9

Closed
jolly336 opened this issue Feb 16, 2017 · 2 comments
Closed

gradle build failed #9

jolly336 opened this issue Feb 16, 2017 · 2 comments

Comments

@jolly336
Copy link

jolly336 commented Feb 16, 2017

I've been running through gradle in action examples,they don't work,A problem occurred evaluating script.(chapter07 #listing_07_06-test-report-aggregation )

gradle :repositotry:test

Zihuatanejo@localhost listing_07_06-test-report-aggregation (master) $ gradle :repository:test --daemon
:model:compileJava UP-TO-DATE
:model:processResources UP-TO-DATE
:model:classes UP-TO-DATE
:model:jar UP-TO-DATE
:repository:compileJava UP-TO-DATE
:repository:compileGroovy UP-TO-DATE
:repository:processResources UP-TO-DATE
:repository:classes UP-TO-DATE
:repository:compileTestJava

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':repository:testCompileClasspath'.
> Could not resolve org.testng:testng:6.8.
 Required by:
     com.manning.gia:repository:0.1
  > Could not resolve org.testng:testng:6.8.
     > Could not get resource 'https://repo1.maven.org/maven2/org/testng/testng/6.8/testng-6.8.pom'.
        > Could not GET 'https://repo1.maven.org/maven2/org/testng/testng/6.8/testng-6.8.pom'.
           > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve org.codehaus.groovy:groovy:2.0.6.
 Required by:
     com.manning.gia:repository:0.1
  > Could not resolve org.codehaus.groovy:groovy:2.0.6.
     > Could not get resource 'https://repo1.maven.org/maven2/org/codehaus/groovy/groovy/2.0.6/groovy-2.0.6.pom'.
        > Could not GET 'https://repo1.maven.org/maven2/org/codehaus/groovy/groovy/2.0.6/groovy-2.0.6.pom'.
           > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve org.spockframework:spock-core:0.7-groovy-2.0.
 Required by:
     com.manning.gia:repository:0.1
  > Could not resolve org.spockframework:spock-core:0.7-groovy-2.0.
     > Could not get resource 'https://repo1.maven.org/maven2/org/spockframework/spock-core/0.7-groovy-2.0/spock-core-0.7-groovy-2.0.pom'.
        > Could not GET 'https://repo1.maven.org/maven2/org/spockframework/spock-core/0.7-groovy-2.0/spock-core-0.7-groovy-2.0.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.

BUILD FAILED

@bmuschko
Copy link
Owner

@jolly336
Copy link
Author

Indeed that is my local environment with SSL handshaking problem.It is working now.Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants