At the moment, Gradle doesn’t provide any special functionality for bypassing the built-in trust manager implementation.
Probably the ideal solution is to install the missing certificate into you java keystore.
http://code.google.com/p/misc-utils/wiki/JavaHttpsUrl#Adding_the_certificate_that_is_not_accepted provides some details on how to do this.