d13ca38296
* Set canBeConsumed = false only on those configurations that have this flag according to the Gradle Java plugins. This saves us from breaking existing build scripts but introduces ambiguity between consumable configurations (e.g. between `apiElements`, `compile`, `runtime`). See the solution in the next point. * Don't set the Kotlin platform attribute on configurations that are not meant for consuming in other projects or resolving directly. This change hides these configurations from Gradle's variant aware dependency resolution and therefore prevents ambiguity (cherry-picked from 81f2c48f)
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