This message was deleted.
# community-support
s
This message was deleted.
v
Actually for plugins in
buildSrc
I think you should have static accessors that are equal to the plugin ID. So neither
id("your.plugin.id")
nor
alias(...)
but just
your.plugin.id
c
😕 groovy doesn't seem to think so...
unless I somehow didn't set the plugin up right
this is what's in
buildSrc
v
groovy doesn't seem to think so
Oh, yeah, I was talking about Kotlin DSL. Don't really expect anyone to use Groovy DSL as it basically almost only has drawbacks. 😄
c
choire preacher
😛
v
Actually, you made me think you are using Kotlin DSL as you talked about accessors. Accessors are just a thing in Kotlin DSL
c
not really, all the ones in
dependencies
work
v
But they are not accessors, just Groovy magic. 😄
c
well... ok, syntax works the same
v
indeed, mostly 🙂
c
right
so for me I didn't know...
I hate groovy 😕
I don't love kotlin all the time either
v
So back to the question, you would probably need to use something like
id(libs.plugins.foo.get().pluginId)
and just use
?
or anything else as version in the catalog
Or you could be abusive and store the plugin id in the
[versions}
section and use
id(libs.versions.plugin.foo)
c
seems I am often abusive in that way, but mostly because I apply most of my plugins in
buildSrc
, so they end up in
dependencies