Загрузка класса из указанного модуля в приложении весенней загрузки (котлин)
У меня есть приложение Spring Boot kotlin. И я хочу использовать гугл гуава. Я пытаюсь добавить это с помощьюimplementation
зависимость. Хорошо, приложение создано и запущено. Во время выполнения возникает исключение:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
com.google.common.collect.MapMaker.setKeyStrength(MapMaker.java:209)
The following method did not exist:
com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;)V
The method's class, com.google.common.base.Preconditions, is available from the following locations:
jar:file:/C:/Users/UserName/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler/1.3.50/ec5559072cc613b67b47ae33c4936fe00a6e356f/kotlin-compiler-1.3.50.jar!/com/google/common/base/Preconditions.class
jar:file:/C:/Users/UserName/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/28.1-jre/b0e91dcb6a44ffb6221b5027e12a5cb34b841145/guava-28.1-jre.jar!/com/google/common/base/Preconditions.class
It was loaded from the following location:
file:/C:/Users/UserName/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler/1.3.50/ec5559072cc613b67b47ae33c4936fe00a6e356f/kotlin-compiler-1.3.50.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of com.google.common.base.Preconditions
Можно ли использовать мою версию гуавы? Например, если мне нужна версия, которая отличается от версии, включенной в библиотеки kotlin.