kotlin DSL syntax error for build.gradle.kts

已回答

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

请先登录再写评论。