pluginManagement { repositories { mavenCentral() google() gradlePluginPortal() maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev/") } resolutionStrategy { eachPlugin { if (requested.id.id.startsWith("org.jetbrains.kotlin")) { useVersion(gradle.rootProject.extra["kotlin.version"] as String) } } } }