gradle build fails to resolve dependencies
sarnobat opened this issue · 1 comments
sarnobat commented
Input
Output
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'ribbon'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve com.netflix.nebula:nebula-bintray-plugin:2.2.0.
Required by:
project : > com.netflix.nebula:gradle-netflixoss-project-plugin:2.2.10
> Could not resolve com.netflix.nebula:nebula-bintray-plugin:2.2.0.
> Could not get resource 'https://plugins.gradle.org/m2/com/netflix/nebula/nebula-bintray-plugin/2.2.0/nebula-bintray-plugin-2.2.0.pom'.
> Could not GET 'https://plugins.gradle.org/m2/com/netflix/nebula/nebula-bintray-plugin/2.2.0/nebula-bintray-plugin-2.2.0.pom'.
> Remote host closed connection during handshake
> Could not resolve com.netflix.nebula:nebula-core:2.2.0.
Required by:
project : > com.netflix.nebula:gradle-netflixoss-project-plugin:2.2.10
project : > com.netflix.nebula:gradle-netflixoss-project-plugin:2.2.10 > com.netflix.nebula:nebula-project-plugin:2.2.1
project : > com.netflix.nebula:gradle-netflixoss-project-plugin:2.2.10 > com.netflix.nebula:nebula-publishing-plugin:2.2.2
project : > com.netflix.nebula:gradle-netflixoss-project-plugin:2.2.10 > com.netflix.nebula:nebula-release-plugin:2.2.7
> Could not resolve com.netflix.nebula:nebula-core:2.2.0.
> Could not get resource 'https://plugins.gradle.org/m2/com/netflix/nebula/nebula-core/2.2.0/nebula-core-2.2.0.pom'.
> Could not GET 'https://plugins.gradle.org/m2/com/netflix/nebula/nebula-core/2.2.0/nebula-core-2.2.0.pom'.
> Remote host closed connection during handshake
> Could not resolve com.perforce:p4java-jfrog:2011.1.297684.
Required by:
project : > com.netflix.nebula:gradle-netflixoss-project-plugin:2.2.10 > com.netflix.nebula:gradle-info-plugin:2.2.2
> Could not resolve com.perforce:p4java-jfrog:2011.1.297684.
> Could not get resource 'https://plugins.gradle.org/m2/com/perforce/p4java-jfrog/2011.1.297684/p4java-jfrog-2011.1.297684.pom'.
> Could not GET 'https://plugins.gradle.org/m2/com/perforce/p4java-jfrog/2011.1.297684/p4java-jfrog-2011.1.297684.pom'.
> Remote host closed connection during handshake
> Could not resolve org.eclipse.jgit:org.eclipse.jgit:3.2.0.201312181205-r.
Required by:
project : > com.netflix.nebula:gradle-netflixoss-project-plugin:2.2.10 > com.netflix.nebula:gradle-info-plugin:2.2.2
> Could not resolve org.eclipse.jgit:org.eclipse.jgit:3.2.0.201312181205-r.
> Could not get resource 'https://plugins.gradle.org/m2/org/eclipse/jgit/org.eclipse.jgit/3.2.0.201312181205-r/org.eclipse.jgit-3.2.0.201312181205-r.pom'.
> Could not GET 'https://plugins.gradle.org/m2/org/eclipse/jgit/org.eclipse.jgit/3.2.0.201312181205-r/org.eclipse.jgit-3.2.0.201312181205-r.pom'.
> Remote host closed connection during handshake
> Could not resolve org.tmatesoft.svnkit:svnkit:1.8.5.
Required by:
project : > com.netflix.nebula:gradle-netflixoss-project-plugin:2.2.10 > com.netflix.nebula:gradle-info-plugin:2.2.2
> Could not resolve org.tmatesoft.svnkit:svnkit:1.8.5.
> Could not get resource 'https://plugins.gradle.org/m2/org/tmatesoft/svnkit/svnkit/1.8.5/svnkit-1.8.5.pom'.
> Could not GET 'https://plugins.gradle.org/m2/org/tmatesoft/svnkit/svnkit/1.8.5/svnkit-1.8.5.pom'.
> Remote host closed connection during handshake
> Could not resolve com.mycila.maven-license-plugin:maven-license-plugin:1.10.b1.
Required by:
project : > com.netflix.nebula:gradle-netflixoss-project-plugin:2.2.10 > nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0
> Could not resolve com.mycila.maven-license-plugin:maven-license-plugin:1.10.b1.
> Could not get resource 'https://plugins.gradle.org/m2/com/mycila/maven-license-plugin/maven-license-plugin/1.10.b1/maven-license-plugin-1.10.b1.pom'.
> Could not GET 'https://plugins.gradle.org/m2/com/mycila/maven-license-plugin/maven-license-plugin/1.10.b1/maven-license-plugin-1.10.b1.pom'.
> Remote host closed connection during handshake
> Could not resolve com.google.guava:guava:17.0.
Required by:
project : > com.netflix.nebula:gradle-netflixoss-project-plugin:2.2.10 > nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0
> Could not resolve com.google.guava:guava:17.0.
> Could not get resource 'https://plugins.gradle.org/m2/com/google/guava/guava/17.0/guava-17.0.pom'.
> Could not GET 'https://plugins.gradle.org/m2/com/google/guava/guava/17.0/guava-17.0.pom'.
> Remote host closed connection during handshake
> Could not resolve org.ajoberstar:grgit:1.3.0.
Required by:
project : > com.netflix.nebula:gradle-netflixoss-project-plugin:2.2.10 > com.netflix.nebula:nebula-release-plugin:2.2.7 > org.ajoberstar:gradle-git:1.2.0
> Could not resolve org.ajoberstar:grgit:1.3.0.
> Could not get resource 'https://plugins.gradle.org/m2/org/ajoberstar/grgit/1.3.0/grgit-1.3.0.pom'.
> Could not GET 'https://plugins.gradle.org/m2/org/ajoberstar/grgit/1.3.0/grgit-1.3.0.pom'.
> Remote host closed connection during handshake
> Could not resolve com.github.zafarkhaja:java-semver:0.9.0.
Required by:
project : > com.netflix.nebula:gradle-netflixoss-project-plugin:2.2.10 > com.netflix.nebula:nebula-release-plugin:2.2.7 > org.ajoberstar:gradle-git:1.2.0
> Could not resolve com.github.zafarkhaja:java-semver:0.9.0.
> Could not get resource 'https://plugins.gradle.org/m2/com/github/zafarkhaja/java-semver/0.9.0/java-semver-0.9.0.pom'.
> Could not GET 'https://plugins.gradle.org/m2/com/github/zafarkhaja/java-semver/0.9.0/java-semver-0.9.0.pom'.
> Remote host closed connection during handshake
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 6.593 secs
sarnobat commented
This happens if you use JDK 7. With JDK 8 it should work.
(Side note - JDK 12 has other issues)