Can't get gradle to authenticate to internal ssl repo

Hello,

I’m new to gradle, and have been really enjoying the experience so far. I currently have a requirement to work with an internal repository that works as a local cache for, for example, maven central. Access to this repo is via ssl, and it acts as a maven 2 mirror.

In an attempt to get gradle to use this repo for resolving dependencies, I have this config:

repositories {

mavenLocal()

maven

{

credentials

{

username “guest”

password “guest”

}

url “https://my.internal.repo/maven2

} }

Gradle complains that it can’t authenticate the SSL connection, so I imported the repo’s cert into ~/.keystore.

How do I get Gradle to trust/use this keystore?

I got this to work by editing the gradle launch script to add these properties to the command line

-Djavax.net.ssl.keyStore= -Djavax.net.ssl.keyStorePassword= -Djavax.net.ssl.trustStore= -Djavax.net.ssl.trustStorePassword=

…and that seemed to work.