refreshVersions
refreshVersions copied to clipboard
Firebase built-in dependencies are not working with Groovy DSL
Checklist
- [ ] I tried to reproduce the bug in my fork of the Kotlin Libraries Playground, or in one of the samples in this repository
- [x] I have run with
$ ./gradlew --scan refreshVersions
to provide a Build Scan URL
Describe the bug
When we use Firebase built-in dependencies in Groovy DSL, it fails.
To Reproduce
Build scan URL: https://gradle.com/s/dk6tywk3n4r2y
- Create a project using Gradle 6.9 with Groovy DSL.
- Add
implementation(platform(Firebase.bom))
under dependencies block. It works fine. - Add also
implementation(Firebase.crashlyticsKtx)
, it fails.
I highly doubt there's anything Groovy DSL specific here.
Are you using an older Firebase BoM that might lack the entry for the new ktx artifact?
Wait, I just looked at the Gradle scan, and the issue seems to be Groovy DSL related actually, I'll take a look later this week. In the meantime, just use the full dependency notation without specifying the version, the BoM will do its magic.
Wait, I just looked at the Gradle scan, and the issue seems to be Groovy DSL related actually, I'll take a look later this week. In the meantime, just use the full dependency notation without specifying the version, the BoM will do its magic.
Using implementation Google.firebase.crashlytics
results in a similar issue.
A problem occurred evaluating project ':myGradleModule'. No such property: firebase for class: Google Possible solutions: firebase