Are there any instructions on how to migrate from ...
# gradle
z
Are there any instructions on how to migrate from settings.gradle to settings.gradle.kts in IntelliJ? I can't get IntelliJ to recognize the settings.gradle.kts file.
g
Works fine for me on 2018.3
Are you sure that you don't have configuration error?
z
I've only tried in 2018.2, I guess I'll see if updating helps first
But just so I know what should happen, is it as simple as deleting the settings.gradle file and creating a new file named settings.gradle.kts or are there some extra steps?
t
I am referring https://github.com/gradle/kotlin-dsl/tree/master/samples a lot, but to be fair I am migrating from maven to kotlin dsl, so you might have more complex cases
g
deleting the settings.gradle file and creating a new file named settings.gradle.kts
Yes, should be enough
c
I remember facing same issue, at some point it wasn't recognized at all, then after some update (still on 2018.2 though) I was able to replace settings.gradle with settings.gradle.kts, restart IntelliJ and it worked after restart
z
Why does IntelliJ ask for all this other informatin if all you need to do is create a file with the right name?
c
I've never seen this dialog, when does it come up?
z
file -> new -> Gradle Kotlin DSL Settings
c
Hm... I usually just create new untyped file and call it settings.gradle.kts 🙂 So the following is theory: 1.
settings.gradle.kts
2.
com.example
3.
your-module-name
4.
./
5.
build.gradle.kts
z
Yeah I tried creating an untyped file and it worked fine, the dialog was confusing me.
👍 1