Hello everyone. With Gradle 6.0, build scripts are...
# gradle
r
Hello everyone. With Gradle 6.0, build scripts are not able to reference
buildSrc/src/main/kotlin/MyClass.kt
anymore. Note that this classes don't have a package as they are in the root of the source set and therefore there was no need for import statements from the different modules
build.gradle.kts
. After the upgrade I'm getting
Unresolved reference: MyClass
everywhere in the project. Any ideas ?
m
For me it does not work in
settings.gradle.kts
, in
build.gradle.kts
it works.
r
That's correct. I forgot that I actually commented some parts of the
settings.gradle.kts
before. So yeah. Something really changed.
m
Yes, it's documented change -
settings.gradle.kts
now exesuted before
buildSrc
.
r
Hm, interesting. Thanks for the link.