発生した問題
Gradleを使ってbuildしたところ、警告が表示された。
表示された警告
taniguchieinoMacBook-Pro:blackberry taniguchiakira$ ./gradlew clean build
> Task :compileKotlin
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
/Users/hogehoge/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.3.30/459999be0d6ac844dd3d2ca85c2daf14deb5f7f0/kotlin-stdlib-jdk8-1.3.30.jar (version 1.3)
/Users/hogehoge/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.3.30/bf0edcf669e446e0d903a0681190d1e3df969ac4/kotlin-stdlib-jdk7-1.3.30.jar (version 1.3)
/Users/hogehoge/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.2.51/36b719a7b84452dd13eeec979d8c82bfb765c57d/kotlin-reflect-1.2.51.jar (version 1.2)
/Users/hogehoge/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.30/9ea98e65c246d34de9af59c104ad9bdea4908ee/kotlin-stdlib-1.3.30.jar (version 1.3)
/Users/hogehoge/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.3.30/989a125fdb6e4d0d75a016032e03e1e3b57a13d/kotlin-stdlib-common-1.3.30.jar (version 1.3)
w: Consider providing an explicit dependency on kotlin-reflect 1.3 to prevent strange errors
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
BUILD SUCCESSFUL in 14s
7 actionable tasks: 7 executed
taniguchieinoMacBook-Pro:blackberry taniguchiakira$
解決方法
build.gradleの
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.9.7'
を
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.9.8+'
に修正した
気づいたこと
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.9.7'
とすると、他のライブラリとの兼ね合いで、「kotlin-reflect」のバージョンの1.2.51と1.3.10が混在していた