I want to get back to the gradle modules versus so...
# multiplatform
c
I want to get back to the gradle modules versus sourceSets in a single module discussion. Right now we use gradle modules for 2 reasons: 1. Avoid accidentally dependencies (example, our
domain
modules are all pure kotlin modules so they cannot inadvertently depend on Android classes) 2. Build performance (only recompile modules that need to) Looks like 1. can be achieved with sourceSets because you can declare dependencies for each sourceSet independently. It will require a bit of discipline because the gradle module might be for example
com.android.library
but it is doable. Are there any docs about build performance with sourceSets that I should be aware of?
k
w.r.t to your second point, gradle will only execute the dependent tasks of the task you specify on the command line
and it uses the same "up-to-date" logic
c
Great. Thanks!