Files
kotlin-fork/libraries/tools/kotlin-gradle-plugin
Sergey Igushkin 099ad8de1e Don't set Kotlin platform attribute for the default configuration
Also, fix empty configurations created for targets that have no runtime
outputs (metadata ones, especially), which could get chosen by Gradle
during dependency variant-aware resolution of a `project(...)`
dependency.

See also: d13ca38

With the attribute set, an input configuration that does not require the
Gradle's USAGE attribute but requires Kotlin platform metadata, will
fail to resolve because the attributes set on the consumable
output configurations are not subsets of each other, as follows:

> Cannot choose between the following variants of project :lib:
  - metadataApiElements
  - metadataDefault
  - metadataRuntimeElements
  All of them match the consumer attributes:
    - Variant 'metadataApiElements':
      - Found org.gradle.usage 'java-api' but wasn't required.
      - Required org.jetbrains.kotlin.platform.type 'common' and found
        compatible value 'common'.
    - Variant 'metadataDefault':
      - Required org.jetbrains.kotlin.platform.type 'common' and found
        compatible value 'common'.
    - Variant 'metadataRuntimeElements':
      - Found org.gradle.usage 'java-runtime-jars' but wasn't required.
      - Required org.jetbrains.kotlin.platform.type 'common' and found
        compatible value 'common'.

Issue #KT-26383 Fixed
2018-09-11 17:22:36 +03:00
..
2017-09-20 11:51:29 +02:00
2013-06-03 17:47:36 +04:00
2018-02-06 21:17:57 +03:00
2018-02-14 16:23:08 +03:00

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