Re:Depends – the missing linker for the JVM
by voodootrucker on Monday November 05, 2018 @12:16AM
(#18380038)
To the parent and GP, this is a problem in large code bases. As soon as you bring in a high level dependency like Spring, Spark, or DropWizard the graph goes 20+ levels deep and manual resolution becomes difficult.
Build tools do their best. Gradle has a reasonably sane version based solution. By statically analyzing the method invocations (and eventually properties too), this tool could (one day) just tell you the versions to use that would be most likely to work.
The long term vision would be to actually incorporate this as a dependency resolution strategy in Gradle so you don't have to think at all.
Re:Depends – the missing linker for the JVM
by village-idiot on Sunday November 04, 2018 @11:14PM
(#18379826)
That’s all fine and well if you have one or two broken dependencies from big popular libraries. This technique does not scale if you have a few dozen internal libraries and a few hundred internally deployed artifacts, or more. At that scale you need a more automated solution.
Re:Depends – the missing linker for the JVM
by bassman9000 on Monday November 05, 2018 @01:29PM
(#18384631)
Anecdote: we have a large codebase with probably 100+ 3rd party dependencies, and dozens of internal modules, and that technique works pretty well.
Besides, where's the automated part on the OP solution? I agree the automation, either with this tool, or vanilla project management ones like gradle, could be beneficial.
Re:Depends – the missing linker for the JVM
by village-idiot on Monday November 05, 2018 @03:58PM
(#18385902)
I can’t speak to gradle, since we don’t use it, but none of the other tools I’ve touched look at ABI compatibility. It’s pretty easy to tell who brought in whatever version after it’s crashed, but catching that in advance is much much harder.
https://search.maven.org/#browse
to find the artifact hosting it, and it tends to be a couple minute job
Bonus tracks: gradle dependencyInsight is great for a similar task: finding out which artifact is bringing the dep.