gradle / ide-smoke-tests

Apache License 2.0
3 stars 2 forks source link

Add smoke test for version catalog being used in buildSrc #13

Closed britter closed 2 years ago

britter commented 2 years ago

This used to work with Gradle 7.1.1 but does not anymore with 7.3. If the buildSrc build references a version catalog from the root projects IntelliJ can not resolve the libs accessor.

Bildschirmfoto 2021-11-18 um 11 14 48
donat commented 2 years ago

It seems like you bumped into this: https://youtrack.jetbrains.com/issue/KTIJ-19370

donat commented 2 years ago

I've checked with IntelliJ IDEA 2021.2.3 and I don't see a difference between Gradle 7.1.1 and 7.3 in this scenario. In both cases I received the following error message:

e: /Users/donat/Development/git/gradle/ide-smoke-tests/06-version-catalog-build-src/buildSrc/build.gradle.kts:14:20: Unresolved reference: libs
britter commented 2 years ago

@donat thanks for looking into this. So should we close this?

donat commented 2 years ago

Actually, since we were not aware this situation, it makes sense to capture the current state in a smoke test.