https://kotlinlang.org logo
Title
p

pokkeli

11/17/2017, 1:28 PM
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

Czar

11/17/2017, 2:09 PM
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

pokkeli

11/17/2017, 2:39 PM
Thank you!