if I'm going to write a plugin that is going to be...
# plugin-development
g
if I'm going to write a plugin that is going to be published on the portal and this depends on another module, should this module be published on the portal as well, shouldnt?
m
It can't though
This is one of the reasons why you should publish your plugin to Maven Central
😔 1
e
https://blog.gradle.org/portal-jcenter-impact#upcoming-plugin-portal-changes
The Gradle Plugin Portal will continue to return redirects (
303 See Other
) for artifact queries it cannot serve. Starting July 15, 2024, these redirects will be towards Maven Central instead of JCenter.
if all your dependencies are published in maven central, your plugin will work when published in gradle plugin portal
m
True but it kinda defeats the purpose of a repository though... If you're publishing some parts of your plugin to Maven Central, might as well distribute all of it.
Or you could shadow everything too I guess.
g
yeah, I'm inclined to do that
m
The nice thing is if you publish everything in Maven Central, it's also available in the plugin portal
Because of that redirection that @ephemient mentioned
The other way around doesn't work
e
yep. although if you don't publish to GPP directly, you don't show up in plugins.gradle.org search
m
Yes, the main advantage of GPP is SEO
Maven Central has a bunch of other advantages like tracking stats (at least on OSSRH), supporting relocations, more immutability
d
And SNAPSHOTs
☝️ 1