Join Slack
Powered by
Is it possible to write a custom settings plugin u...
# community-support
t
Trey Pero
06/20/2024, 4:36 AM
Is it possible to write a custom settings plugin using precompiled scripts? If so does anyone have any example references? In particular, I'm looking to write one to share common build cache settings.
p
Philip W
06/20/2024, 5:41 AM
Yes, you have to name it: *.settings.gradle[.kts]
https://github.com/hfhbd/ComposeTodo/blob/main/gradle/build-logic/src/main/kotlin/MyRepos.settings.gradle.kts
👍 1
v
Vampire
06/20/2024, 6:48 AM
And it can't be done in
buildSrc
, only an included build or published. And the include must be inside
pluginManagement { ... }
.
👍 1
t
Trey Pero
06/20/2024, 2:58 PM
That did the trick, thank you both! Luckily I plan to publish it so no issues there.
👌 1
3
Views
Open in Slack
Previous
Next