Hello. When I try to publish via the maven-publish plugin, configured like:
publishing {
repositories {
maven {
authentication {
basic(BasicAuthentication)
}
credentials {
username = 'user'
password = 'pass'
}
url 'https://nexus.myserver.com:8443/repository/maven-snapshots/'
}
}
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
I get the following error:
Could not GET 'https://nexus.myserver.com:8443/repository/maven-snapshots/com/example/1.0.0-SNAPSHOT/maven-metadata.xml'.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I am using a cert that is valid and signed by godaddy. It works fine in my browser, and I can curl from the command line and it’s fine also. What do I need to do in order to get gradle to accept the valid and signed cert?
Edit: I had the same result on CentOS with a similar configuration otherwise. Can gradle simply not handle deploying to an https url?