Is there an updated multiplatform plugin available...
# multiplatform
j
Is there an updated multiplatform plugin available for
1.3.40-eap-21
? Right now it doesn't seem like it (kotlin-eap repo)
s
Can’t reproduce. Could you share more details? E.g. your
build.gradle
.
i
EAP builds are not published to the Gradle plugin portal. To apply a EAP plugin using the plugins DSL you need to declare
kotlin-eap
as a plugin repository in your
settings.gradle
and configure resolution rules for this plugin:
Copy code
pluginManagement {
    repositories {
        jcenter()
        gradlePluginPortal()
        maven { setUrl("<https://dl.bintray.com/kotlin/kotlin-dev>") }
        maven { setUrl("<https://dl.bintray.com/kotlin/kotlin-eap>") }
    }

    resolutionStrategy {
        eachPlugin {
            if (requested.id.id == "kotlin-multiplatform" || requested.id.id == "org.jetbrains.kotlin.multiplatform") {
                useModule("org.jetbrains.kotlin:kotlin-gradle-plugin:${requested.version}")
            }
            if (requested.id.id == "org.jetbrains.kotlin.native.cocoapods") {
                useModule("org.jetbrains.kotlin:kotlin-gradle-plugin:${requested.version}")
            }
        }
    }
}
j
that works indeed, thank you!