fe64d33ae4
Previously, the connection between a `KotlinCompilation` and its default `KotlinSourceSet` (the one automatically created and added into the compilation) was not expressed in the MPP model in any reasonable way that can be used in the build scripts. However, this connection seems to have settled in the build logic, and it may be useful to be able to get the default source set from a compilation, for example, to be able to configure dependencies across several targets in a uniform way. The metadata compilations don't have their dedicated source sets, but we can think of commonMain as a default source set for the project's metadata, is it is currently in fact only contains the declarations from commonMain. Issue #KT-27685 Fixed
Gradle Plugin
The Gradle plugin sources can be found in this (kotlin-gradle-plugin) module.
To install the Gradle plugin into the local Maven repository, run this command from the root of Kotlin project:
./gradlew :kotlin-gradle-plugin:install
The subplugin modules are :kotlin-allopen, :kotlin-noarg, :kotlin-sam-with-receiver. To install them, run:
./gradlew :kotlin-allopen:install :kotlin-noarg:install :kotlin-sam-with-receiver:install
To find more details about the plugins provided by this artifact and their tasks refer to Module.md.
Gradle Plugin Integration Tests
See the module libraries/tools/kotlin-gradle-plugin-integration-tests