https://kotlinlang.org logo
Title
j

jcechace

10/14/2018, 8:58 AM
Hello. Could somebody have a look at this
build.gradle.kts
and hint me how to make the project work with latest 1.3.rc and ktor 1.0.0.alpha-3?
import org.jetbrains.kotlin.gradle.dsl.Coroutines


plugins {
    application
    kotlin("jvm") version "1.3.0-rc-131"

}

kotlin {
    experimental.coroutines = Coroutines.ENABLE
}

repositories {
    mavenCentral()
    jcenter()
}


val ktor_version = "1.0.0-alpha-3"
val kotlinx_coroutines_version = "0.30.2-eap13"

dependencies {
    compile(kotlin("stdlib"))

    compile("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinx_coroutines_version")
    compile("io.ktor:ktor-client-core:$ktor_version")
    compile("io.ktor:ktor-client-cio:$ktor_version")


    compile("io.fabric8:kubernetes-client:3.1.10")
    compile("io.fabric8:kubernetes-model:2.0.8")
    compile("io.fabric8:openshift-client:3.1.10")

    compile("io.apiman:apiman-gateway-engine-beans:1.5.1.Final")
    testRuntime("junit:junit:4.12")
}
fails with
Plugin [id: 'org.jetbrains.kotlin.jvm', version: '1.3.0-rc-131'] was not found in any of the following sources:
a

Andreas Sinz

10/14/2018, 9:28 AM
#gradle
j

jcechace

10/14/2018, 9:31 AM
thanks, haven’t noticed that channel.
n

Nikky

10/14/2018, 11:15 AM
add a
settings.gradle.kts
with a pluginManagement block where you tell gradle which maven repositires to search and and which artifact to use for the missing plugin id