Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "older Jackson versions" tests in
:nessie-client
(#7820)
The "older Jackson version" tests all run with the _latest_ Jackson version, because a `platform()` dependency takes precedence over "normal" version constraints, but a `version { strictly(...) }` can override a `platform()`. This change updates the dependency decls for older Jackson versions. Before this change: ``` $ ./gradlew :nessie-client:dependencies --configuration testJackson_2_11_4RuntimeClasspath ... testJackson_2_11_4RuntimeClasspath - Runtime classpath of source set 'test jackson 2 11 4'. +--- project :nessie-model | +--- com.fasterxml.jackson:jackson-bom:2.16.0 | | +--- com.fasterxml.jackson.core:jackson-annotations:2.16.0 (c) | | +--- com.fasterxml.jackson.core:jackson-core:2.16.0 (c) | | \--- com.fasterxml.jackson.core:jackson-databind:2.16.0 (c) | +--- com.fasterxml.jackson.core:jackson-databind -> 2.16.0 | | +--- com.fasterxml.jackson.core:jackson-annotations:2.16.0 | | | \--- com.fasterxml.jackson:jackson-bom:2.16.0 (*) | | +--- com.fasterxml.jackson.core:jackson-core:2.16.0 | | | \--- com.fasterxml.jackson:jackson-bom:2.16.0 (*) | | \--- com.fasterxml.jackson:jackson-bom:2.16.0 (*) | \--- com.fasterxml.jackson.core:jackson-annotations -> 2.16.0 (*) +--- com.fasterxml.jackson:jackson-bom:2.16.0 (*) +--- com.fasterxml.jackson.core:jackson-core -> 2.16.0 (*) +--- com.fasterxml.jackson.core:jackson-databind -> 2.16.0 (*) +--- com.fasterxml.jackson.core:jackson-annotations -> 2.16.0 (*) ``` After this change: ``` $ ./gradlew :nessie-client:dependencies --configuration testJackson_2_11_4RuntimeClasspath ... testJackson_2_11_4RuntimeClasspath - Runtime classpath of source set 'test jackson 2 11 4'. +--- project :nessie-model | +--- com.fasterxml.jackson:jackson-bom:2.16.0 | | +--- com.fasterxml.jackson.core:jackson-annotations:2.16.0 -> 2.11.4 (c) | | +--- com.fasterxml.jackson.core:jackson-core:2.16.0 -> 2.11.4 (c) | | \--- com.fasterxml.jackson.core:jackson-databind:2.16.0 -> 2.11.4 (c) | +--- com.fasterxml.jackson.core:jackson-databind -> 2.11.4 | | +--- com.fasterxml.jackson.core:jackson-annotations:2.11.4 | | \--- com.fasterxml.jackson.core:jackson-core:2.11.4 | \--- com.fasterxml.jackson.core:jackson-annotations -> 2.11.4 +--- com.fasterxml.jackson:jackson-bom:2.16.0 (*) +--- com.fasterxml.jackson.core:jackson-core -> 2.11.4 +--- com.fasterxml.jackson.core:jackson-databind -> 2.11.4 (*) +--- com.fasterxml.jackson.core:jackson-annotations -> 2.11.4 ```
- Loading branch information