Jan Skrasek
03/02/2023, 12:17 PMapi(platform("com.fasterxml.jackson:jackson-bom:2.9.8"))
// vs
implementation(platform("com.fasterxml.jackson:jackson-bom:2.9.8"))
jendrik
03/03/2023, 9:37 AMapi
is the better thing to do).
But if, e.g., you add the BOM to each project anyway, it does not make a difference (then you could use implementation
).Jan Skrasek
03/03/2023, 11:29 AMIf you use "implementation" the version constraints from the platform are NOT visible transitively at compile time.This is something I dont understand much. I have a library L and the app module A. A depends on L. If I use implementation(bom) in L and don't specify lib versions (neither bom) in A, it still compiles, yet you write that those constraints are not present during the compile time - how the compiler knows how to compile A, if there are no version constraints present? Does it use runtime classpath from the L? Thank you for answers 🙂
jendrik
03/03/2023, 7:00 PM