3 ms·
./gradlew dependencies will not tell you which versions play nice together.
by jermo 8y ago
./gradlew dependencies will not tell you which versions play nice together.
- bunderbunder 8y agoConcrete example: I dealt with a dependency conflict between two different packages that wanted different versions of Apache Commons. Both of them only claimed that they wanted "greater than or equal to X version." This wasn't actually true, though, because Apache Commons had removed some features and added some features, so the real requirements were Package A wants Commons >= X and < Y Package B Commons >= Z where Z > Y. Sorting that out meant manually doing exactly what this Depends package does - poking around with different versions and using the missing method exceptions and some other research to figure out the exact nature of the conflict, so that I could pin their versions and set up appropriate package relocation rules. This tool would not just do that faster, but also more reliably - by doing it manually, I was only able to verify that I had resolved any issues with the code I actually exercised. A gap in test coverage would leave me exposed to run-time errors in production.