Posts

Showing posts with the label gradlew

Pulling gradle distributionUrl through artifactory remote-simple repository results in javax.net.ssl.SSLHandshakeException

Pulling gradle distributionUrl through artifactory remote-simple repository results in javax.net.ssl.SSLHandshakeException How can I tell gradle wrapper to trust my artifactory's cert without modifying every machine that uses it or am I pulling through artifactory in the wrong way? My artifactory uses a self signed cert and my systems are set to trust this. Within a gradle build, access to the artifactory repos works wonderfully for my dependencies but gradlew less so. To improve build reliability, we added an artifactory simple remote repository for https://services.gradle.org/distributions/gradle-... but see the following when we build: gradle-wrapper.properties distributionUrl=https://artifactory01.megacorp.us/remote-simple-artifactory/distributions/gradle-4.0.2-all.zip Error Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: ...