cb549cba00
We cannot create kapt configurations in `KotlinGradleSubplugin.apply`, because `apply` is invoked after a script is evaluated, so user cannot refer to kapt configurations in script. We cannot call `apply` before script's evaluation, because then we might not be able to determine if a Gradle plugin corresponding to a subplugin is appled. For example in case of the following script: ``` apply plugin: "kotlin" apply plugin: "kotlin-kapt" ``` subplugin's apply will exit early because Gradle plugin "kotlin-kapt" is not applied yet, when "kotlin"'s apply is evaluated.
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