question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for gradle BOM

See original GitHub issue

Using a BOM requires specifying dependencies without versions.

https://docs.gradle.org/current/userguide/upgrading_version_4.html#rel5.0:bom_import

:refreshVersions generates versions for such dependencies with a value of none, which is then being resolved and causes an error during sync.

Currently, the only solution is to manually remove all such entries in *.properties after running refreshVersions.

Example BOM configuration:

    implementation platform(Libs.firebase_bom)
    // com.google.firebase:firebase-bom:24.0.0
    implementation 'com.google.firebase:firebase-core'
    implementation 'com.google.firebase:firebase-auth'
    implementation 'com.google.firebase:firebase-messaging'
    implementation 'com.google.firebase:firebase-analytics'
    implementation 'com.google.firebase:firebase-config'

For this to function correctly, versions should not be specified for the libraries within the BOM.

Would also be nice of Libs supported libraries without a specific version, but that is less of an issue.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
LouisCADcommented, Oct 1, 2020

We currently support Gradle 6.4.1+ (we need to write it somewhere and have the plugin tell you if you try a lower version).

0reactions
timrijckaertcommented, Jun 5, 2021

Oh I’m sorry I didn’t see that one 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sharing dependency versions between projects
Gradle treats all entries in the <dependencyManagement> block of a BOM similar to Gradle's dependency constraints. This means that any version defined in...
Read more >
Gradle Goodness: Use bill of materials (BOM) As ... - MrHAKI
Since Gradle 5 we can easily use a bill of materials (BOM) in our build file to get recommended dependency versions. The dependency...
Read more >
Better dependency management for Gradle - Spring
Maven's dependency management includes the concept of a bill-of-materials (bom). A bom is a special kind of pom that is used to control...
Read more >
Gradle Goodness: Use Bill of Materials (BOM) as ... - DZone
Since Gradle 5, we can easily use a bill of materials (BOM) in our build file to get recommended dependency versions.
Read more >
Document how to use Gradle's native bom support as ... - GitHub
I started a new project using the Gradle Java Platfrom Plugin rather than the Spring Boot dependency gradle plugin which worked but required...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found