Got socket exception during request. It might be caused by SSL misconfiguration > Broken pipe
10:43 18 Jan 2026

There is a gradle spring boot project that I need to run on my local. This requires Java 24. I have set up the language and the required project SDK. When I run ./gradlew build it gives me the following error stack:

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all artifacts for configuration 'classpath'.
> Could not resolve com.gradle:develocity-gradle-plugin:3.19.2.
  Required by:
      unspecified:unspecified:unspecified
   > Could not resolve com.gradle:develocity-gradle-plugin:3.19.2.
      > Could not get resource 'https://plugins.gradle.org/m2/com/gradle/develocity-gradle-plugin/3.19.2/develocity-gradle-plugin-3.19.2.pom'.
         > Could not GET 'https://plugins.gradle.org/m2/com/gradle/develocity-gradle-plugin/3.19.2/develocity-gradle-plugin-3.19.2.pom'.
            > Got socket exception during request. It might be caused by SSL misconfiguration
               > Broken pipe

I'm stuck with this from past 2 days, trying all sorts of workarounds including adding these in gradle.properties file that sits outside the project location.

org.gradle.jvmargs=-Djava.net.preferIPv4Stack=true
org.gradle.offline=true
org.gradle.jvmargs=-Djdk.tls.client.protocols=TLSv1.2,TLSv1.3
org.gradle.java.home=/Users/sulagna/.sdkman/candidates/java/21.0.3-tem

This is what the setting looks like.

Image displays gradle settings on IntelliJ

I also tried downloading the dependency files manually and building but that gave some different issues.

I really need some help to get this fixed.

spring-boot gradle build.gradle broken-pipe java-24