Might be worth deleting your .gradle directory
# gradle
k
Might be worth deleting your .gradle directory
d
Funny since it only happens for a new kotlin dsl gradle project...
n
Avoid using Intellij's Gradle Kotlin DSL project wizard which will use a old version of Gradle, and will generate a out of date/invalid build.gradle.kts file.
d
Oh, that could be what happened! I generated the project before I updated IDEA! Funny, because it looked the same as the article (I'm not in front of my computer now, so I'll give you the link later..), I guess the article was also relatively old... I didn't think it could change so much.. thanks! I'll try when in front of computer...
k
That's why I haven't used the Gradle kotlin DSL yet.. Seemed like it's changing to too much. The groovy DSL isn't that bad...
d
Any planned date for it to be stable?
k
Changes seem less breaking nowadays... Is guess sometime this year. But you know what they say... Play with knives...
n
Kotlin DSL seems to be stabilising. Will need to be in order to have a 1.0 release sometime in Q1 this year. Keep in mind that the Groovy DSL has been around for about a decade.
Biggest issue with Kotlin DSL at the moment is the unstable tooling support (eg syntax highlighting of kts files in Intellij still hasn't been fixed yet).