由于新的Jackson 2.9发布,Opentok SDK不符合Spring-boot标准 [英] Opentok SDK not Spring-boot compliant due new Jackson 2.9 release
问题描述
一旦Jackson 2.9于3月2日发布,我的Spring-boot应用程序就开始失败了。我使用Gradle构建和Spring引导版本1.5.2,这取决于Jackson-core 2.8.7。
My Spring-boot application started failing once Jackson 2.9 was released on 2nd of March. I am using Gradle for building and Spring boot version 1.5.2 which depends on Jackson-core 2.8.7.
此外我还需要我添加的Opentok SDK作为依赖项:
In addition I need Opentok SDK which I have added as dependency:
compile group: 'com.tokbox', name: 'opentok-server-sdk', version: '2.3.2'
我想原因是Opentok SDK依赖关系定义允许为Jackson下载更新的JAR然后创建下载几个版本的Jackson JAR时,库不匹配:
I suppose the reason is the Opentok SDK dependency definition which allows downloading newer JAR for Jackson which then creates a mismatch of libraries as several versions of Jackson JARs are downloaded:
https://github.com/opentok/Opentok-Java-SDK/blob/master/build.gradle
dependencies {
...
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '[2.3.1,2.99999)'
如何对此进行排序?
我不是Gradle的专家,但是我可以以某种方式强迫Opentok使用2.8.7版本吗?
我现在根本无法提供,所以请帮忙。
How to sort this out? I am not an expert of Gradle but could I somehow force Opentok to use 2.8.7 version? I cannot deliver at the moment at all so please help.
推荐答案
这是我如何整理出来的
compile ('com.tokbox:opentok-server-sdk:2.3.2')
{
// Jackson 2.9 is not compatible with Spring boot 1.4.4 - 1.5.2
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
}
这篇关于由于新的Jackson 2.9发布,Opentok SDK不符合Spring-boot标准的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!