https://kotlinlang.org logo
Title
s

Sam

10/17/2017, 6:29 PM
Is there anyway to get the kotlin dsl support in IntelliJ without importing the project as a gradle project? I'd like to be able to have proper syntax highlighting, import resolution, etc for build.gradle.kotlin files, but without the IntelliJ gradle management. We have a project at work where we don't use the IntelliJ gradle integration - instead we use the gradle idea plugin and open the generated *.ipr file.
j

jlleitschuh

10/17/2017, 7:38 PM
Excellent question, I'm going to guess no, but I could be totally wrong. @bamboo
m

mkobit

10/17/2017, 8:31 PM
@Sam i haven't personally seen it, you probably want to file an issue at https://github.com/gradle/kotlin-dsl/issues
t

tenwit

10/17/2017, 10:21 PM
Aw man, that explains so much.. I only ever use gradlew idea and I had no idea why Kotlin DSL was unrecognized in IntelliJ. Just opened my project using the built-in gradle support and my all-red build.gradle.kts is now nicely highlighted and working properly..
😂 1
b

bamboo

10/17/2017, 10:38 PM
Unfortunately I don’t know of any way
j

jlleitschuh

10/17/2017, 11:38 PM
@tenwit I’m glad that your issue was resolved. I’ve never truly understood the value add of the Gradle IntelliJ plugin. Over simply importing the project as a gradle project.