07-20-2023, 02:53 PM
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.
**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
[To see links please register here]
**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