Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 1.31 KB

File metadata and controls

13 lines (8 loc) · 1.31 KB

It appears that the Kotlin multiplatform Gradle plugin resolves dependencies during the configuration phase.

Looking into the detached configuration, it resolves the Kotlin/Native compiler.

The detached configuration eagerly resolves dependencies here.

Dependency resolution during configuration should be avoided, as dependency resolution is expensive, and the configuration phase runs on every build.

The only steps required to reproduce the issue are to apply the Kotlin multiplatform Gradle plugin, define a target, and ensure that the Kotlin/Native compiler is not already present in KONAN_HOME (~/.konan/).

Steps to reproduce:

  1. rm -rf ~/.konan (or wherever your KONAN_HOME is located)
  2. ./gradlew help --scan