refreshVersions icon indicating copy to clipboard operation
refreshVersions copied to clipboard

Firebase built-in dependencies are not working with Groovy DSL

Open necatisozer opened this issue 3 years ago • 3 comments

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.

necatisozer avatar May 18 '21 15:05 necatisozer

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 avatar May 18 '21 22:05 LouisCAD

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.

LouisCAD avatar May 18 '21 22:05 LouisCAD

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

timrijckaert avatar Jun 05 '21 19:06 timrijckaert