Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to skip ssl verification with gradle command but able to do so in maven

I am currently using gradle publish command but unable to do so, due to PKIX path building failed unable to find valid certification path to requested target when I tried with mvn deploy command mvn deploy -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true --debug It worked fine. I want to achieve same with gradle.

like image 668
Priyanka Sharma Avatar asked Sep 20 '25 16:09

Priyanka Sharma


1 Answers

Create the gradle.properties file:

systemProp.http.ssl.insecure=true
systemProp.http.ssl.allowall=true
systemProp.http.ssl.ignore.validity.dates=true
like image 197
khmarbaise Avatar answered Sep 23 '25 12:09

khmarbaise



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!