I created a Gradle project and everything works fine, but when I try to upload it to my Maven repository, I get the following Gradle error:
FAILURE: Build failed with an exception. * What went wrong: Could not evaluate onlyIf predicate for task ':library:signArchives'. > Unable to read secret key from file: C:\Users\ideal\pubring.gpg (it may not be a PGP secret key ring)
I followed the instructions in Sonatype to generate the key, and then copied it from the generated location to the location above. I also published the public key to the MIT keystore. The gradle.properties file in my user directory contains the following gradle.properties related gradle.properties for the keys:
signing.keyId=MY_KEY_ID signing.password=MY_KEY_PASSWORD signing.secretKeyRingFile=C:\\Users\\ideal\\pubring.gpg
It is on a Windows platform. I tried to find the error message, but the only thing that appears is the source files for the respective plugins.
source share