'gradlew commandline options for ssl insecure and allowall

This seems like a trivial answer that I should be able to find easily but I can't. I have a https repo with self signed certificates and I have imported the certs to the store using keytool command but I still get the PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target errors.
As a remedy I use these options when building with maven : -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true.
Question is, what are equivalent commandline options when running ./gradlew build ? Just can't seem to find this anywhere.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source