One of my project's build started failing with the exception given below
> Could not resolve org.slf4j:slf4j-api:[1.6.1,).
> Failed to list versions for org.slf4j:slf4j-api.
> Unable to load Maven meta-data from https://repo1.maven.org/maven2/org/slf4j/slf4j-api/maven-metadata.xml.
> Could not GET 'https://repo1.maven.org/maven2/org/slf4j/slf4j-api/maven-metadata.xml'.
> Received fatal alert: protocol_version
Environment:
Maven Central and Bintray have announced that they will discontinue support for TLS v1.1 and below. You will be affected if you are using Java 6 or 7 and using Gradle versions 2.1 through 4.8.
GRADLE:
Check gradle version
gradle --version
You must take action if all of these are true:
You can take any one of the following actions to use TLS v1.2+:
The first two solutions are recommended, as the third opens a possible attack vector.
Source:https://blog.gradle.org
Maven:
If you are using Maven use the command given below
mvn -Dhttps.protocols=TLSv1.2 install