I have a Gradle (Kotlin) project & latest IDEA...
# announcements
p
I have a Gradle (Kotlin) project & latest IDEA EAP. How can I easily switch from Groovy build.gradle to Kotlin build.gradle? Can I simply accomplish this with "New Gradle Kotlin DSL Build Script" and will it automatically become default for the project? Also, should I type extension for the filename? I'm a bit hesitant trying, because I tried around a month-two ago, and I recall screwing up something with this...
c
kotlin gradle stuff should be discussed in #gradle Answering your question:
build.gradle
if exists is treated as the default. If you want to retain it for historical/until full transition but do not want it to be used by gradle, you can set
rootProject.buildFileName = 'build.gradle.kts'
in
gradle.settings
p
Thank you!