With Gradle 4.x I can place any .kt to BuildSrc/src/main/kotlin and use classes/objects anywhere inside build.gradle.kts and app/build.gradle.kts. Seems it's broken with Gradle 5.0. Any idea how to make this alive back?
e
eskatos
11/27/2018, 2:33 PM
This doesn’t feel right. Could you provide a reproducer?
s
Slava Glushenkov
11/27/2018, 2:42 PM
I'll try.
g
gildor
11/27/2018, 4:47 PM
Are you sure that you have settings.gradle.kts in your buildSrc? This is required starting from Gradle 5
c
Czar
11/27/2018, 7:47 PM
Yup, I have this setup and it works, I do have a package there though, as I don't like putting things in the default package.
Gradle 4 had a warning about settings.gradle.kts (or I've read about it somewhere), so I've added it even before 5