Robert Elliot
07/10/2024, 10:37 PMJonathan Leitschuh
07/10/2024, 10:43 PMJonathan Leitschuh
07/10/2024, 10:43 PMRobert Elliot
07/10/2024, 10:44 PMimplementation('a:1.0.0') brings in b:1.2.3 which has a CVE fixed in b:1.2.12.
I would like gradle to use b:1.2.12
Future situation: I upgrade a to 1.1.0 which now brings in b:1.4.1
I would like gradle to use b:1.4.1
Further future situation: I upgrade a to 2.0.0 which now brings in b:2.1.1
I would like gradle to use b:2.1.1
I do not want to have to manage the version of b beyond stating that it must be at least 1.2.12
At present I am using this:
dependencies {
constraints {
implementation('b:[1.2.12,)') {
because 'version 12.3 brought in transitively by a:1.0.0 has CVE-2023-XXX'
}
}
}
however, that upgrades me immediately to b:2.4.5, and I have no idea if that works with a:1.0.0
I can fix that by using b:[1.2.12,2.0[, but I still immediately get upgraded to b:1.7.8, and I don't know if I trust b to do semver properly. And if a future version of a needs b:2.x I now need to spot that and fix up my constraint.Vampire
07/10/2024, 10:47 PMVampire
07/10/2024, 10:47 PMVampire
07/10/2024, 10:47 PMb:1.2.12Vampire
07/10/2024, 10:47 PMRobert Elliot
07/10/2024, 10:48 PMVampire
07/10/2024, 10:48 PMRobert Elliot
07/10/2024, 10:48 PMVampire
07/10/2024, 10:48 PMconstraint { ... } resolution wiseVampire
07/10/2024, 10:48 PM