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
can't use TLSv1.2 with gradle 4.8.1 #5940
Comments
I cannot reproduce this issue locally with JDK 8. What does Could you please rerun the build with |
and
|
@paleozogt I suspect there's something wrong with your JDK as it's trying to use |
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? |
I'm using JDK 8 built from here for Centos 5: https://github.com/hgomez/obuildfactory Since this JVM works with TLS 1.2, I don't think its the OS. Perhaps the build scripts set the defaults in some weird way. |
Ah, I don't think it has to do with the way it was built or the host OS. According to Oracle's article,
But the JDK 8 I'm using is |
Thanks, that explains it! I'm closing this issue since we don't support EA releases of Java 8. Please upgrade to an actual release, preferably the latest update version. 😉 |
Solution found at gradle/gradle#5940 (comment)
It works on my mac pro! ❯ ./gradlew --version Gradle 8.0Build time: 2023-02-13 13:15:21 UTC Kotlin: 1.8.10 JAVA_HOME: /usr/local/Cellar/openjdk@11/11.0.20/libexec/openjdk.jdk/Contents/Home |
I'm unable to resolve dependencies on maven central due to
Received fatal alert: protocol_version
.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.
Expected Behavior
Be able to resolve dependencies.
Current Behavior
I can't resolve dependencies due to
Received fatal alert: protocol_version
.Context
I use gradle to run build nodes in our CI system.
Steps to Reproduce (for bugs)
Here is my
build.gradle
:Running
./gradlew tasks
produces:Your Environment
./gradlew --version
shows:The text was updated successfully, but these errors were encountered: