Is there still no nice way to get IntelliJ to play...
# gradle
r
Is there still no nice way to get IntelliJ to play nice with Gradlescript kotlin? I can get a sample to work but the IDE is still showing a ton of errors
j
The integration as it is is working really well.
I'm sorry you're having problems. Have you tried opening one of the examples?
n
Might be best to try Gradle Kotlin DSL after the Kotlin 1.1.4 IntelliJ plugin is released. Some serious IDE issues relating to Gradle Kotlin DSL have supposedly been fixed in that release.
r
Actually it seems to be working now. After a few restarts of the IDE it just worked
Not sure if I can reproduce it, but the problem was that functions specific to plugins weren't getting recognized immediately
j
I've seen it work that way. Yea. Intellij can be derpy like that
r
The problematic lines were
kotlin("jvm")
in the plugins closure, the entire
application
closure with the application plugin applied, and trying to use the
kotlin
function with
compile(kotlin("stdlib"))
n
Ahh, I see. Did you go for the long version? Like this: compile("org.jetbrains.kotlinkotlin stdlib jre8$KOTLIN_VER")
j
I have a couple projects that I've written and published with Gradle Script Kotlin that you can use for examples: https://github.com/JLLeitschuh/kotlin-guiced https://github.com/JLLeitschuh/ktlint-gradle
r
Oh no worries, it's working fine now
It's just the initial application of the plugin it seems to choke on
After that, when I restart IntelliJ it works fine. Sometimes I don't even need to do that