common

open fun common(build: KotlinHierarchyBuilder.() -> Unit)

Creates a group with the name "common". It's a shortcut for group("common") { }.

Most hierarchies attach their nodes/groups to "common".

The following example applies the shown hierarchy to the "main" compilations and creates a nativeMain source set that depends on the usual 'commonMain' source set:

common {
group("native") {
withIos()
withMacos()
}
}