https://kotlinlang.org logo
Title
g

gaetan

07/18/2017, 4:33 PM
With kotlin-dsl ?
a

agomez

07/18/2017, 4:34 PM
yes
g

gaetan

07/18/2017, 4:40 PM
I must be completely dumb. I try to stick to the documentation but nothing works.
Ex: Or, starting with Kotlin 1.1.1, the plugin can be applied using the Gradle plugins DSL: plugins { id “org.jetbrains.kotlin.jvm” version “<version to use>” }
but when use that it my build.gradle.kts, it’s all red.
a

agomez

07/18/2017, 4:44 PM
i'm using kotlin 1.1.3-2
g

gaetan

07/18/2017, 4:55 PM
@agomez what is your distribution url?
j

jakiej

07/18/2017, 4:55 PM
kotlin-dsl is available since 0.10, if you are talking about
plugins {
    `kotlin-dsl`
}
Gradle 4.0.1 is out! Featuring: ❯ Stable Caching for Java ❯ Kotlin DSL 0.9 ❯ Enhanced CLI ❯ Parallel Downloads
a

agomez

07/18/2017, 4:56 PM
https\://services.gradle.org/distributions/gradle-4.0.1-all.zip
g

gaetan

07/18/2017, 4:57 PM
Ok, maybe I was much too far.
It’s a productivity nightmare for the moment. My computer is close to death. I’m going to go back to the “classical” gradle version.
g

gildor

07/19/2017, 1:11 AM
@gaetan This guide covers only Groovy DSL. https://kotlinlang.org/docs/reference/using-gradle.html Kotlin-dsl is not 1.0 and still in development and API changing each minor version, so if you are not familiar with Gradle in overall and don’t want to be an early adopter of gradle/kotlin-dsl just use groovy configs, at least you will have full docs and config snippets
But it’s good to use latest stable version of Gradle to get last fixes and build speed improvements.
g

gaetan

07/19/2017, 2:01 AM
@gildor thanks for your advice. This is what I’ve done with far more results in just an hour…