Я пробовал gradle - script -kotlin с помощью простого приложения hello-world в IntelliJ. Но IntelliJ автозаполнение не появляется в файле build.gradle.kts.
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'
У меня есть плагин IntelliJ kotlin и плагин gradle и с помощью gradle 3.0. Пример приложения работает с командами gradle.
Как настроить IntelliJ для включения автозавершения в файле build.gradle.kts?
Я использую IntelliJ 2016.2.2 с версией плагина kotlin: 1.0.3-release-IJ2016.1-120