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

GarouDan

03/05/2019, 2:32 PM
I’m trying to use the kotlin
1.3.30-eap-11
version, but I’m receiving this error:
Copy code
* What went wrong:
Plugin [id: 'org.jetbrains.kotlin.multiplatform', version: '1.3.30-eap-11'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'org.jetbrains.kotlin.multiplatform:org.jetbrains.kotlin.multiplatform.gradle.plugin:1.3.30-eap-11')
I’m trying to use this in my `build.gradle.kts`:
Copy code
buildscript {
	repositories {
		maven { url = uri("<https://dl.bintray.com/kotlin/kotlin-eap>") }
...
	dependencies {
		classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.30-eap-11")
...
}

allprojects {
	repositories {
		maven {
			url = uri("<https://dl.bintray.com/kotlin/kotlin-eap>")
			content {
				excludeGroup("Kotlin/Native")
			}
		}
...
Am I missing something? Edit: The error is happening here (in my root
build.gradle.kts
file):
Copy code
plugins {
	kotlin("multiplatform") version "1.3.30-eap-11"
}
It looks like the problem will be solved. I’m trying to add:
Copy code
pluginManagement {
	repositories {
		gradlePluginPortal()
		maven { url = uri("<https://dl.bintray.com/kotlin/kotlin-eap>") }
	}
on my
settings.gradle.kts
instead of my
build.gradle.kts
.
a

araqnid

03/05/2019, 3:21 PM
yes, that’s right, you need to add the repository to settings for it be assimilated before any build files referencing plugins are read
I think just
maven(url = "https://...")
is ok too
g

GarouDan

03/05/2019, 4:34 PM
Thanks = )