gradle / plugin-portal-requests

Gradle Plugin Portal issues and requests.
https://plugins.gradle.org/
12 stars 8 forks source link

Add docs on how to use environment variables for publish credentials #206

Closed fourlastor closed 3 months ago

fourlastor commented 1 year ago

Expected Behavior

https://plugins.gradle.org/docs/publish-plugin currently this doc doesn't mention one can use GRADLE_PUBLISH_KEY/GRADLE_PUBLISH_SECRET as environment variables instead of the gradle properties, I personally found it out by accident when using the --validate-only flag.

It would be nice to add a line to the docs explaining that's also an option, since it's much simpler to setup in a CI environment (example).

I know this is not a feature request, sorry for the wrong tag, I thought this was the closest to what I actually wanted to suggest

ov7a commented 12 months ago

Thank you for your interest in Gradle!

This is a valid documentation issue that we will address. However, this area of Gradle is currently not a focus one, so it might take a while before a fix is made.

fourlastor commented 12 months ago

If it's open source and you can point me at where it's hosted I'm also happy to do a pr

ov7a commented 12 months ago

Thanks for the suggestion! Unfortunately, Plugin Portal is not open source (at least for now), so the change can be made only by a team member.

ov7a commented 3 months ago

This is fixed: https://plugins.gradle.org/docs/publish-plugin