Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
can't use TLSv1.2 with gradle 4.8.1 #5940
I'm unable to resolve dependencies on maven central due to
This was working up until recently, so I think its due to the TLS changes by maven central. I updated to Gradle 4.8.1, and I was already using Java 1.8, but it still isn't working.
Be able to resolve dependencies.
I can't resolve dependencies due to
I use gradle to run build nodes in our CI system.
Steps to Reproduce (for bugs)
Here is my
Overriding TLS with
I don't understand why this is necessary. Wasn't Java 8 supposed to have this on by default? Why doesn't Gradle just use something it knows will be compatible?
I'm glad you found a workaround!
That's my understanding, too. I suspect it's some issue of the JDK you're using.
What is compatible today, might not be compatible at some point in the future. Therefore, we try to avoid setting it explicitly unless we have to. As described in #5740 (comment), Gradle >= 4.8.1 now sets it explicitly for Java 7 which is end-of-life.
@paleozogt Is there anything special about the JDK you're using?