59f544cb7c
Now sub-plugins are applied to compilation before users `afterEvaluate` closure execution, which could lead to unexpected by the user state. For example, when a user adds dependencies to 'kaptClasspath' in 'afterEvaluate'. This fix removes check in Kapt plugin if dependencies are present on 'kaptClasspath' and moves it into KaptTask.onlyIf spec. So the task will still have SKIPPED state if there are no AP provided. ^KT-63366 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
Gradle Plugin Integration Tests
All Gradle plugins tests are located inside libraries/tools/kotlin-gradle-plugin-integration-tests
module.