Weird Gradle behaviour regarding `inline` : I'm moving code out of my `build.gradle.kts` into exten...
d
Weird Gradle behaviour regarding
inline
: I'm moving code out of my
build.gradle.kts
into extension functions on Android's
LibraryExtension
in
buildSrc
, making the config nice and neat 👍 After moving the code, it doesn't work 😱, Gradle behaves as though the config hasn't applied, even though the calls are there and it compiles. One of the things I tried out of desperation was to make the functions
inline
, and suddenly it all works!!! Never before have I come across a situation in Kotlin where
inline
changes behaviour 🤷 Oh Gradle... the tool that's guaranteed to keep me humble as a developer. Whenever I think I've finally understood it; you can be guaranteed a heavy fall is just around the corner.
v
That's then maybe more a bug somewhere? Can you reproduce that behavior in an MCVE? Sounds pretty strange.