Disable SSL cert validation

Nope actually, apologies - didn’t read carefully and assumed your problem is with sys props not being propagated.

Gradle uses HTTP Client for HTTP downloads, you may check whether it offers any sys props to trust any server cert. Alternatively you may use the standard JSSE system props to provide a custom trust store for your server certificate.