I just started getting a handshake_failure when gradle tries to get some dependencies. It works just fine on my local machine. It worked on all my previous builds. The build it started failing for had no changes to the gradle configuration.
./gradlew build
A problem occurred configuring root project 'tuition-api'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.0.1.BUILD-SNAPSHOT.
Required by:
project :
> Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.0.1.BUILD-SNAPSHOT.
> Unable to load Maven meta-data from https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-gradle-plugin/2.0.1.BUILD-SNAPSHOT/maven-metadata.xml.
> Could not get resource 'https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-gradle-plugin/2.0.1.BUILD-SNAPSHOT/maven-metadata.xml'.
> Could not GET 'https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-gradle-plugin/2.0.1.BUILD-SNAPSHOT/maven-metadata.xml'.
> Received fatal alert: handshake_failure
> Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.0.1.BUILD-SNAPSHOT.
> Unable to load Maven meta-data from https://repo.spring.io/milestone/org/springframework/boot/spring-boot-gradle-plugin/2.0.1.BUILD-SNAPSHOT/maven-metadata.xml.
> Could not get resource 'https://repo.spring.io/milestone/org/springframework/boot/spring-boot-gradle-plugin/2.0.1.BUILD-SNAPSHOT/maven-metadata.xml'.
> Could not GET 'https://repo.spring.io/milestone/org/springframework/boot/spring-boot-gradle-plugin/2.0.1.BUILD-SNAPSHOT/maven-metadata.xml'.
> Received fatal alert: handshake_failure
Any ideas?
[EDIT]
Also, my previous successful builds are now failing when I re-run them. Is it possible repo.spring.io is blocking the addresses where pipelines runs it processes?
The URLs work when I manually try them from my computer.
Hi @Leio Heyenrath,
I suspect that the maven artifact has been removed (which can happen since it is only a BUILD-SNAPSHOT). Try switching to one of these versions: https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-gradle-plugin
It's strange because now the URLs listed cannot find the resource when I try them from my computer. I wonder if there was some edge caching going on that my computer was able to hit, but the build servers were not.
Your answer appears to be the correct.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.