Cause: Unable to find valid certification path to requested target


(vijaymohite) #1

I have following script in my gradle.build file:
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath ‘com.github.jengelman.gradle.plugins:shadow:1.2.3’
}
}

apply plugin: 'java’
apply plugin: ‘com.github.johnrengelman.shadow’

I am working behind proxy
I have provided proxy host,port,username,password in gradle vm options in intellij idea editor as well as I have provided the same details in gradle.properties file located at project root folder.
Then I imported the certificate for shadow.jar from site:
https://jcenter.bintray.com/com/github/jengelman/gradle/plugins/shadow/1/2/3

Then I added this certificate in certficate-store cacerts located at %java_home%/jre/lib/security

Even then it is not working and giving me certificate issue while resolving the dependency specified in classpath in gradle.build file