kotlin DSL syntax error for build.gradle.kts

Answered

I currently using intellij v2017.2.5 community edition. The editor does not recognize kotlin DSL syntax in the build.gradle.kts. Editor flagged out error such as unresolved reference plugin, when I use the plugin function, such as shown below

apply{
plugin("java")
}

How do I configure the editor to recognize the kotlin DSL syntax?

Note: I am able to execute this build.gradle.kts successfully using command prompt.

0
1 comment

Please use https://discuss.kotlinlang.org/ for anything Kotlin related.

0

Please sign in to leave a comment.