Is there any guide how to try kn/mpp 1.3.70-dev-97...
# multiplatform
k
Is there any guide how to try kn/mpp 1.3.70-dev-972? I got error: Plugin [id: 'org.jetbrains.kotlin.multiplatform', version: '1.3.70-dev-972'] was not found in any of the following sources:
s
You need to add the kotlin-dev bintray repository to your buildscript classpath and regular repositories
From my head right now: top level build.gradle.kts:
Copy code
buildscript {
    repositories {
            maven { url =  uri("<https://dl.bintray.com/kotlin/kotlin-dev>") }
    }
}

allprojects {
    repositories {
        maven { url = uri("<https://dl.bintray.com/kotlin/kotlin-dev>") }

    }
}
Other than that, you can try any version you like by cloning the repository and calling ./gradlew install <-- to install the gradle plugin ./gradlew runIde <-- to start an IDE with current kotlin version
Make sure that your project is then using the correct gradle plugin from your mavenLocal
k
I have added repository, and it seems someone else having same problem recently: https://discuss.kotlinlang.org/t/kotlin-1-3-60-early-access-preview/14579
s
Hmm. You can look into bintray and see which version is really published. Not every dev build lands on bintray afaik
Everything listed there under “versions” should work 👍
s
Can I see more of your build file and the error message in order to help you? You could share in a private message if you prefer that 🤔
k
It have 1.3.50, and I'm trying to change it to 1.3.70-something
s
I used the version from above and I am able to fetch and build with that 1.3.70 version 🤔 I have to go into the U-Bahn now. Takes me 15 min now 😕
m
See any (recent) blogpost about Kotlin EAP, and just replace
eap
to
dev
everywhere
s
Oh are you relying on serialization?
Okay I checked you repository out!
I see the issue.
k
I'm not relying on serialization
s
I think the issue is that your buildscript block is not applying the repositories before you want to use them. - You can fix the issue by moving your app into a own app subfolder/submodule and splitting the root build.gradle from the app/build.gradle
Works for me
Hope this helped you ☺️
k
yes, "buildscript block is not applying the repositories" was the key to understand the problem
👍 1
thank you!
At the end, I copied plugin repos to settings.gradle : pluginManagement { repositories { ... } }
that way i don't need separate app folder