Splitties / refreshVersions

Life is too short to google for dependencies and versions
https://splitties.github.io/refreshVersions/
MIT License
1.66k stars 107 forks source link

Firebase built-in dependencies are not working with Groovy DSL #358

Open necatisozer opened 3 years ago

necatisozer commented 3 years ago

Checklist

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

  1. Create a project using Gradle 6.9 with Groovy DSL.
  2. Add implementation(platform(Firebase.bom)) under dependencies block. It works fine.
  3. Add also implementation(Firebase.crashlyticsKtx), it fails.
LouisCAD commented 3 years ago

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?

LouisCAD commented 3 years ago

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.

timrijckaert commented 3 years ago

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