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.

Handle omission of `version` field in dependency coordinates

See original GitHub issue

Is your feature request related to a problem? Please describe. The fact that I either have to use a version of + or a dummy version for my dependencies isn’t exactly ideal. It’s a little confusing to people who are viewing my repository that the versions I’m providing in the dependencies block aren’t actually being used.

Describe the solution you’d like I’d like to be able to omit the version field entirely from my dependencies, for the purpose of clarity.

Describe alternatives you’ve considered ¯\_(ツ)_/¯

Additional context I’m not sure how feasible this is with Gradle’s architecture, but I figured I’d make the feature request anyway, since I couldn’t find an issue on the topic.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
serebitcommented, Oct 19, 2019

Good thing I don’t do Android development, then! Thanks for the tip.

0reactions
jmfayardcommented, Sep 3, 2020

refreshVersions will use _ as a placeholder and support new Gradle 6 dependencies features where you remove the versions after you added platform constraints from a BOM or gradle metatdata

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Resolve a Version Collision of Artifacts in Maven
Version collision happens when multiple dependencies link to the same artifact, but use different versions. As a result, there may be errors in ......
Read more >
7 Understanding Maven Version Numbers - Oracle Help Center
In the Maven coordinates of the artifact, that is, in the project.version of the artifact's POM. In the dependency section of POMs to...
Read more >
Spring Initializr Reference Guide
This section provides a brief overview of the Spring Initializr reference documentation: think of it as map for the rest of the document....
Read more >
maven dependency without version - Stack Overflow
It is impossible for maven to work without defining versions of the artifacts. They should be defined somewhere in dependencyManagement tag ...
Read more >
Maven by Example - Sonatype Help
Dependency Management. Because a project is defined by a unique set of coordinates consisting of a group identifier, an artifact identifier, and a...
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