With Gradle 4.x I can place any .kt to BuildSrc/sr...
# gradle
s
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
This doesn’t feel right. Could you provide a reproducer?
s
I'll try.
g
Are you sure that you have settings.gradle.kts in your buildSrc? This is required starting from Gradle 5
c
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