Anybody using a buildSrc precompiled gradle kts file to manage building / targets for a KMP library?
I’ve got a repo I’m trying to update that has 5 libraries and 1 example KMP app. Currently the build.gradle.kts sets the KMP build targets for the library, but I want to move this to buildSrc and apply it directly to the libraries.
i
ian.shaun.thomas
11/22/2024, 7:04 PM
Instead of build source I would recommend looking at composite builds to create plugins that you apply instead which is what we do. Underlying reasoning is build cache is simplified and plugins dont have to stay lock step with your project that way and could be reused in other projects more easily in the future which we've also done.
s
Scott Lanoue
11/22/2024, 7:06 PM
Yeah it seems like buildSrc / pre compiled scripts have known limitations that aren’t communicated well. I’ll take a shot at a composite build plugin, thanks Ian!