With kotlin-dsl ?
# gradle
g
With kotlin-dsl ?
a
yes
g
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
i'm using kotlin 1.1.3-2
g
@agomez what is your distribution url?
j
kotlin-dsl is available since 0.10, if you are talking about
Copy code
plugins {
    `kotlin-dsl`
}
Gradle 4.0.1 is out! Featuring: ❯ Stable Caching for Java ❯ Kotlin DSL 0.9 ❯ Enhanced CLI ❯ Parallel Downloads
a
https\://services.gradle.org/distributions/gradle-4.0.1-all.zip
g
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
@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
@gildor thanks for your advice. This is what I’ve done with far more results in just an hour…