BTW the `vertx-gradle-plugin` has no impact on tha...
# vertx
j
BTW the
vertx-gradle-plugin
has no impact on that
d
This is what I have:
Copy code
plugins {
    id 'io.vertx.vertx-plugin' version '0.0.6'
    id 'org.jetbrains.kotlin.jvm' version '1.2.10'
}

repositories {
    mavenCentral()
    jcenter()
}

dependencies {
    compile 'io.vertx:vertx-lang-kotlin'
   compile 'io.vertx:vertx-lang-kotlin-coroutines'
    compile 'io.vertx:vertx-web'
    compile 'io.vertx:vertx-mysql-postgresql-client'
    compile 'io.vertx:vertx-sql-common'

    compile 'org.jetbrains.kotlin:kotlin-stdlib-jre8'

    def coroutinesVersion = '0.21'
    compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"

    testCompile group: 'junit', name: 'junit', version: '4.12'
}

group 'com.comp.api'
version '1.0-SNAPSHOT'

kotlin { experimental { coroutines 'enable' } }

vertx {
    mainVerticle = "MainVerticle"
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
    kotlinOptions {
        jvmTarget = "1.8"
    }
}
It still doesn't work like this...
j
You probably need an explicit version number of the vert.x coroutine dependency
Your error is a dependency resolution right? can you paste it?
d
Copy code
Warning:<i><b>root project 'deviceRegistration': Unable to build Kotlin project configuration</b>
Details: java.lang.reflect.InvocationTargetException: null
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':compileClasspath'.
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find io.vertx:vertx-lang-kotlin-coroutines:.
Required by:
    project :</i>
j
yep
add an explicit version there
It’s because it’s not part of the
vertx-dependencies
kind of BOM
d
Thanks! That worked... it might have been nice to be handled by
io.vertx.vertx-plugin
, but I guess nothings' perfect. 😉
j
🙂