Module with code common to all other modules.
This module is so called single_source
because all code, from all source sets,
live in the same folder (src/main
or src/test
for tests). This is possible
because all packages are well organized preventing conflicts.
Another alternative is to use the multiple_sources
module, which is the most
common approach for multiplatform projects.
Note that we still can use the kotlin expect
declarations with this method,
but we will need to put the code on a different directory.
export enabledModules="common-single_source"
Usually there's no need to build this module separately since it's used as a dependency in other modules. But if you would like to build only this module do:
./gradlew :common-single_source:build
or in a simplified way (can run more tasks):
./gradlew build
./gradlew :common-single_source:check
or in a simplified way (can run more tasks):
./gradlew check
This module does not run separately, but as a part of other modules.