https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
k

Konstantin Petrukhnov

11/04/2019, 6:58 AM
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

Sebastian Sellmair [JB]

11/04/2019, 7:23 AM
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

Konstantin Petrukhnov

11/04/2019, 7:41 AM
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

Sebastian Sellmair [JB]

11/04/2019, 7:43 AM
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

Sebastian Sellmair [JB]

11/04/2019, 7:49 AM
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

Konstantin Petrukhnov

11/04/2019, 7:53 AM
It have 1.3.50, and I'm trying to change it to 1.3.70-something
s

Sebastian Sellmair [JB]

11/04/2019, 7:56 AM
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

msink

11/04/2019, 8:19 AM
See any (recent) blogpost about Kotlin EAP, and just replace
eap
to
dev
everywhere
s

Sebastian Sellmair [JB]

11/04/2019, 8:30 AM
Oh are you relying on serialization?
Okay I checked you repository out!
I see the issue.
k

Konstantin Petrukhnov

11/04/2019, 8:42 AM
I'm not relying on serialization
s

Sebastian Sellmair [JB]

11/04/2019, 8:44 AM
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

Konstantin Petrukhnov

11/04/2019, 9:05 AM
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
2 Views