Skip to content

Reproducer project demonstrating that Kotlin multiplatform Gradle plugin eagerly resolves dependencies during the configuration phase

Notifications You must be signed in to change notification settings

tylerbertrand/kotlin-mpp-resolves-deps-during-config

Repository files navigation

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

About

Reproducer project demonstrating that Kotlin multiplatform Gradle plugin eagerly resolves dependencies during the configuration phase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages