The documentation on the plugin portal states that gradle.publish.key
and gradle.publish.secret
should be configured in ~/.gradle/gradle.properties
. However, it doesn’t appear to work:
Execution failed for task ':publishPlugins'.
> Missing publishing keys. Please set gradle.publish.key and gradle.publish.secret system properties or login using the login task.
I’ve verified that the properties are configured correctly by outputting them from the build script:
println project.getProperty('gradle.publish.key')
println project.getProperty('gradle.publish.secret')
Strangely, if I remove my project’s gradle.properties
file, it works as expected and uses the properties configured in ~/.gradle/gradle.properties.