Hi,
I found sort of a workaround, I work behind a SSL proxy so was struggling with the same issue, here is my solution:
-
Added the certificate for the SSL proxy in the system default keystore (you can create your own keystore if you want)
sudo keytool -storepass changeit -keystore /etc/ssl/certs/java/cacerts -importcert -alias my-root-CA -file ~/Downloads/my-root-ca.cer -
Used the default keystore when running Gradle (Gradle will cache dependencies so you might not need to include it everytime).
./gradlew tasks -Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts -Djavax.net.ssl.keyStore=/etc/ssl/certs/java/cacerts -Djavax.net.ssl.trustStorePassword=changeit -Djavax.net.ssl.keyStorePassword=changeit --no-daemon