This message was deleted.
# community-support
s
This message was deleted.
v
Yes, you can do that in a settings script. Or you just use the conventional default path for the version catalog which is
gradle/libs.versions.toml
, then you don't need the snippet at all. 🙂
p
thanks for the quick response, i don’t think i provided enough information. We operate with a monorepo and have various separate projects and try to isolate shared logic into plugins (and sometimes init scripts). We want to share version of common libraries between all of the projects. What we do today is copy and paste that block which refers to a common location in the mono repo. However, i need to add that block to each project. I’m asking how to reduce that duplication
v
Yeah, you can use a settings plugin for that.
p
i have heard reference to that in various stack over flow. is there a specific gradle doc on that? i haven’t been able to find one with google
v
What is "that"?
p
a “settings plugin” how is that different from a non-settings plugin which i have created
v
If we are talking about a "normal" plugin, it is
Plugin<Settings>
instead of
Plugin<Project>
. If we are talking about a precompiled script plugin, it is
foo.settings.gradle.kts
or
foo.settings.gradle
instead of
foo.gradle.kts
or
foo.gradle
.
p
excellent. we typically do precompiled scripts, so i’ll dig into that. thanks you
👌 1
âś… 1
j
❤️ 1