are there any consequences of changing a group:art...
# community-support
c
are there any consequences of changing a group:artifact of a plugin if you don't change the plugin id? (presuming most people are using the plugin id... I suppose would be the most obvious)
v
I guess not, except as you mentioned if people depend on it in their convention plugins directly, or have some configuration regarding it like telling the dependency analysis gradle plugin that it is ok to use things from there transitively when depending on the marker artifact, or if they follow the legacy way to add the plugin to the buildscript dependencies, or have some dependency constraints regarding it, or have some licence check configuration regarding it, .... So all in all, I personally would avoid it unless there are really compelling reasons to do so and if you do, well, some things will most probably break but probably nothing that is not relatively easily fixable. 🤷‍♂️
t
Makes me wonder is there a way to publish both but put a deprecation in the gradle meta data so those on older group:artifact would be warned for a release cycle or two?
👍 1
c
right, I've noticed maven central has a way to do redirects but not certain that can be in any way applicable. I'm just thinking I might want to change from
tld.domain
as the group, to
tld.domain.gradle
as the group and maybe also
tld.domain.gradle.convention
as a way to group/distinguish purpose
instead of perhaps
tld.domin:gradle-convention-coverage
it'd be
tld.domain.gradle.convention:coverage
honestly, I doubt ANYONE is using my semver plugin, and it's in a 0.x release state anyways
oh, the example on maven central is hibernate. It all used to be
org.hibernate
but now for example hibernate orm is
org.hibernate.orm
and if you look it up you'll see a pointer, not certain if it actually sends an http redirect when you download though
t
you could also do similar to how the gradle plugin ID lookups work. its just an empty artifact and metadata that depends on the group:artifact the implementation is under
t
thats absolutely how I'd go about this if I were you Caleb
c
that's probably basically what hibernate does
don't know if they're using maven or gradle
v
Hibernate is using Gradle
👍 1