How can I reference a custom remote Maven repository which is hosted on Stash (aka. Bitbucket Server)? Here is what I tried in the root build.gradle
:
allprojects {
repositories {
jcenter()
maven {
// This Stash path does not work
url "https://stash.company.lan/projects/AP/repos/internal-repository"
}
maven {
// This GitHub path works fine
url "https://github.com/user/mvn-repo/tree/master"
}
}
}
I cannot figure out the correct path to the raw folder structure for Stash so Gradle understands. When I reference a library stored in the repository the following error is thrown:
Error:Cause: unable to find valid certification path to requested target