Support for gradle BOM
See original GitHub issueUsing 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:
- Created 4 years ago
- Reactions:2
- Comments:9 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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).
Oh I’m sorry I didn’t see that one 😃