-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build and Publishing improvements #402
Conversation
…fy dependency management via version catalog.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for the PR! |
FYI - I can't currently publish 10.0.4 due to how publishing is failing. The publishing will need to be updated or reverted. |
Sure, I'll gladly have a look - any further info / stacktrace etc. would be appreciated. |
I normally have been publishing to the plugin portal and central. In attempts to fix things yesterday I did publish to the plugin portal so that may be good enough. However, the error I was getting was:
Yet simply adding |
also just realized the way it was publishing to central was wrong. Maybe I'll just get rid of trying to publish to central. |
Thanks for the detailed insights. Target RepositoryWhen making these changes, my first instinct was also to just publish to the Gradle plugin portal and drop Maven Central publishing, which I didn't do due to the frequency of downloads from Maven Central. However, I suspect that for most consuming projects, Maven Central is chosen by one of these scenarios:
All in all, I would consider it a valid strategy to just publish to the Gradle Plugin Portal. If you're worried about legacy compatibility for versions that are only on Maven Central, but not the Gradle Plugin Portal: The Gradle Plugin Portal always delegates to JCenter (we'll see for how long :D) and Maven Central for things that aren't on the Plugin Portal. No need to declare multiple repositories here. In the end, only trying this out will yield a definitive answer. Maybe most projects consuming the plugin from Maven Central don't do so by design, but by implicit consequences of their plugin resolution setup, and the developers would have no problem at all if the plugin were published on the Plugin Portal only?! Signing / PublishingSorry the signing is failing, this was unfortunately the part I couldn't verify without being you 😄 |
This PR Updates some of the build and publishing configuration:
com.gradle.plugin-publish
already)