I'm running AWS Codebuild within a private network, for that I have created the file .gradle/gradle.properties
to use a proxy and inside it I have the following values:
systemProp.https.proxyHost=<https-proxy-host>
systemProp.https.proxyPort=<https-port>
systemProp.http.proxyHost=<http-proxy-host>
systemProp.http.proxyPort=<http-port>
systemProp.http.nonProxyHosts=localhost|127.0.0.1
I'm using AWS's Ubuntu standard image version 5.0 for the build, but I keep getting this error when I run ./gradlew clean build
:
Downloading https://services.gradle.org/distributions/gradle-6.8.3-bin.zip
Exception in thread "main" javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.
To be honest I'm not sure if gradle is aware of the file .gradle/gradle.properties
or not to get the proxy values, any thoughts?