Hello, is there a way to add a dependency for all subprojects in gradle in the context of kotlin multiplatform?
d
Dmitry Stakhov
11/09/2024, 6:18 AM
Regular Gradle solution:
For each project in gradle.afterProject block write
if kotlin multiplatform plugin is applied then get the plugin extension.
In the extension go to the target and source set you need and apply the dependency
d
Daniel Weidensdörfer
11/09/2024, 7:42 AM
thanks
t
TheArchitect123
11/14/2024, 4:07 PM
Why not just use a toml file then import the dependency into each target module