This is an automated email from the ASF dual-hosted git repository.
vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/calcite.git
The following commit(s) were added to refs/heads/master by this push:
new 532f903 Use jackson-bom to specify Jackson versions
532f903 is described below
commit 532f903fe495d741053619c13a51537e57dcd619
Author: Vladimir Sitnikov <[email protected]>
AuthorDate: Sun Oct 4 02:33:29 2020 +0300
Use jackson-bom to specify Jackson versions
It enables to configure version constraints for all Jackson modules
at once.
---
bom/build.gradle.kts | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/bom/build.gradle.kts b/bom/build.gradle.kts
index ac3a7bb..0132f29 100644
--- a/bom/build.gradle.kts
+++ b/bom/build.gradle.kts
@@ -38,7 +38,13 @@ fun DependencyConstraintHandlerScope.runtimev(
) =
"runtime"(notation + ":" + versionProp.v)
+javaPlatform {
+ allowDependencies()
+}
+
dependencies {
+ api(platform("com.fasterxml.jackson:jackson-bom:${"jackson".v}"))
+
// Parenthesis are needed here:
https://github.com/gradle/gradle/issues/9248
(constraints) {
// api means "the dependency is for both compilation and runtime"
@@ -48,10 +54,7 @@ dependencies {
apiv("com.beust:jcommander")
apiv("com.datastax.cassandra:cassandra-driver-core")
apiv("com.esri.geometry:esri-geometry-api")
- apiv("com.fasterxml.jackson.core:jackson-annotations", "jackson")
- apiv("com.fasterxml.jackson.core:jackson-core", "jackson")
apiv("com.fasterxml.jackson.core:jackson-databind")
- apiv("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml",
"jackson")
apiv("com.github.kstyrc:embedded-redis")
apiv("com.github.stephenc.jcip:jcip-annotations")
apiv("com.google.code.findbugs:jsr305", "findbugs.jsr305")