Can't get gradle to authenticate to internal ssl repo


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 {






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

…and that seemed to work.