diff --git a/Src/java/cql-to-elm/build.gradle b/Src/java/cql-to-elm/build.gradle index 0458be486..5b782b882 100644 --- a/Src/java/cql-to-elm/build.gradle +++ b/Src/java/cql-to-elm/build.gradle @@ -3,6 +3,10 @@ plugins { id 'cql.xjc-conventions' } +ext { + jacksonVersion = project['jackson.version'] +} + dependencies { api project(':cql') api project(':model') @@ -14,7 +18,7 @@ dependencies { // in the cql-to-elm project. Ideally, we'd factor out all serialization depedencies into common // libraries such that we could swap out jackson for something else. In the meantime, these are // "implementation" dependencies so that they are not exported downstream. - implementation 'com.fasterxml.jackson.module:jackson-module-jakarta-xmlbind-annotations:2.15.2' + implementation "com.fasterxml.jackson.module:jackson-module-jakarta-xmlbind-annotations:${jacksonVersion}" testImplementation project(':elm-jackson') testImplementation project(':model-jackson') testImplementation project(':quick') diff --git a/Src/java/elm-jackson/build.gradle b/Src/java/elm-jackson/build.gradle index 4d91203c7..73bb1a2d8 100644 --- a/Src/java/elm-jackson/build.gradle +++ b/Src/java/elm-jackson/build.gradle @@ -2,12 +2,13 @@ plugins { id 'cql.library-conventions' } +ext { + jacksonVersion = properties['jackson.version'] +} + dependencies { api project(':model') api project(':elm') - implementation 'org.apache.commons:commons-text:1.10.0' - implementation 'com.fasterxml.jackson.core:jackson-core:2.16.1' - implementation 'com.fasterxml.jackson.core:jackson-databind:2.16.1' - implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.16.1' - implementation 'com.fasterxml.jackson.module:jackson-module-jakarta-xmlbind-annotations:2.16.1' + api "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:${jacksonVersion}" + api "com.fasterxml.jackson.module:jackson-module-jakarta-xmlbind-annotations:${jacksonVersion}" } diff --git a/Src/java/elm-jaxb/build.gradle b/Src/java/elm-jaxb/build.gradle index deeea8646..e3f90a2ab 100644 --- a/Src/java/elm-jaxb/build.gradle +++ b/Src/java/elm-jaxb/build.gradle @@ -4,5 +4,4 @@ plugins { dependencies { api project(':elm') - implementation 'org.apache.commons:commons-text:1.10.0' } diff --git a/Src/java/gradle.properties b/Src/java/gradle.properties index f987c2aa7..9c4aedb6a 100644 --- a/Src/java/gradle.properties +++ b/Src/java/gradle.properties @@ -5,5 +5,6 @@ group=info.cqframework version=3.8.0-SNAPSHOT specification.version=1.5.2 hapi.version=7.0.0 +jackson.version=2.16.1 antlr.version=4.13.1 android.api.level=28 diff --git a/Src/java/model-jackson/build.gradle b/Src/java/model-jackson/build.gradle index d0f19b8c9..9f0fe1621 100644 --- a/Src/java/model-jackson/build.gradle +++ b/Src/java/model-jackson/build.gradle @@ -2,12 +2,14 @@ plugins { id 'cql.library-conventions' } +ext { + jacksonVersion = project['jackson.version'] +} + dependencies { api project(':model') - implementation 'com.fasterxml.jackson.core:jackson-core:2.16.1' - implementation 'com.fasterxml.jackson.core:jackson-databind:2.16.1' - implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.16.1' - implementation 'com.fasterxml.jackson.module:jackson-module-jakarta-xmlbind-annotations:2.16.1' + api "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:${jacksonVersion}" + api "com.fasterxml.jackson.module:jackson-module-jakarta-xmlbind-annotations:${jacksonVersion}" testImplementation project(":quick") testImplementation project(":qdm")