If you have a convention plugin for your Kotlin conventions, add it there. If not, create one. :-)
➕ 1
e
eygraber
01/08/2024, 8:36 AM
I do have one but it's not specific to this project so I'd have to build a flag in to control that. Much easier if KGP already had a way 😅
v
Vampire
01/08/2024, 8:37 AM
I hope it does not have, that would be implicit cross-project configuration. :-)
Unless it would be something like a Project Property for example
e
eygraber
01/08/2024, 9:11 AM
I think they have it for other configuration already, but not sure how they implemented it.
My set of convention plugins actually does this in a way that doesn't do cross project configuration. I have a build service that is exposed in the root build.gradle.kts where the user can set default values for all the different configuration I support. Then the convention plugins pull from there as they're applied.
b
Bekzod
01/08/2024, 4:38 PM
In these couple days, I've been working on convention plugin for KMM.
so far created for compose, buildTargets and 1 more for kotlin configuration - minSdk, compileOptions... etc.
I'm not sure, is this good grouping up? but so far it's reducing duplication quite well and I'm figuring stuff on the way.