Any idea how to make this `build.gradle.kts` work?...
# gradle
j
Any idea how to make this
build.gradle.kts
work? What I need is esentially a kotlin-dsl gradle project with latest ktor
Copy code
mport 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")
}
I suspect the reason is that the RC versions of plugin are not in the main plugin repository
after configuring plugin repositories in
settings.gradle.kts
Copy code
pluginManagement {

    repositories {
        jcenter()
        gradlePluginPortal()
        maven(url = "<http://dl.bintray.com/kotlin/kotlin-eap>")
    }

    resolutionStrategy {
        eachPlugin() {
            if (requested.id.id == "org.jetbrains.kotlin.jvm.gradle.plugin" ) {
                useModule("org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:1.3.0-rc-131")
            }
        }
    }
}
it continues to fail with
Plugin with id org.jetbrains.kotlin.jvm.gradle.plugin' not found.
I’m sure that plugin exists within the kotlimn-eap bintray repo
g
You have wrong plugin id: org.jetbrains.kotlin.jvm.gradle.plugin -> org.jetbrains.kotlin.jvm
Also you need EAP repo in repositories list of build script, not only settings, otherwise stdlib will not be resolved
j
Yea.. while going through all the places where the docs are it got mixed up. Managed to resolve it few minutes ago. Thanks.