2938b69ff5
Since there are a lot of changes around klibs in 1.4-M2, it was
decided to postpone enabling user-side platform libraries generation
by default. This patch switches the default distribution type to
prebuilt.
It also slightly refactors the code allowing user to choose the
distribution type. Now, there are only two distribution types
available:
- prebuilt - the default type, contains prebuilt platform libs.
A distribution archive has the "-prebuilt-" classifier.
- light - doesn't contain platform libs in an archive and
generates them at the user side. The archive has no
classifier to avoid changes in the K/N build logic and
TC configurations.
The same types are also available for 1.3 but with sightly different
convention:
- prebuilt - the default type, contains prebuilt platform libs.
A distribution archive has no classifier.
- light - aka "restricted" distribution, doesn't contain
platform libs for Apple platforms. The archive has
the "-restricted-" suffix. Doesn't have a facility
to build the libraries at the user side.
Issue #KT-38174 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