I think there's a bug or an issue with the documen...
# multiplatform
b
I think there's a bug or an issue with the documentation or the plugin: if i look at the source code: https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/kotlinTargets.kt i can see that the kotlinTarget class as a "compilations" property of type NamedDomainObjectContainer. which means i can do,
Copy code
someKotlinTarget.getCompilations() {
}
to configure it or to be explicit:
Copy code
someKotlinTarget.getCompilations().configure {
}
but i follow the docs at https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#default-project-layout
Copy code
jvm().compilations.main.defaultSourceSet {
            dependencies {
                implementation kotlin('stdlib-jdk8')
            }
        }
The example don't even work in groovy build script... are those docs for kotlin gradle build script only?