I am trying out gradle-script-kotlin with simple hello-world application in IntelliJ. But IntelliJ auto-completion doesn't popup in build.gradle.kts file.
https://github.com/gradle/gradle-script-kotlin/tree/master/samples/hello-world
build.gradle.kts:
apply<ApplicationPlugin>()
configure<ApplicationPluginConvention> {
mainClassName = ".HelloWorld"
}
configure<JavaPluginConvention> {
setSourceCompatibility(1.8)
setTargetCompatibility(1.8)
}
repositories {
jcenter()
}
dependencies {
testCompile("junit:junit:4.12")
}
settings.gradle:
rootProject.buildFileName = 'build.gradle.kts'
I have IntelliJ kotlin plugin and gradle plugin installed and using gradle 3.0. The sample application works with gradle commands.
How to configure IntelliJ to enable auto-completion on build.gradle.kts file?
I'm using IntelliJ 2016.2.2 with kotlin plugin version: 1.0.3-release-IJ2016.1-120