TelegramBots
TelegramBots copied to clipboard
Unable to use with Kotlin: mapdb pulls an old dependency
Hi, this is my dependency graph:
[INFO] +- org.telegram:telegrambots-abilities:jar:6.0.1:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.11:compile
[INFO] | \- org.mapdb:mapdb:jar:3.0.8:compile
[INFO] | +- org.jetbrains.kotlin:kotlin-stdlib:jar:1.2.71:compile (version selected from constraint [1.2.41,1.2.90))
[INFO] | | \- org.jetbrains.kotlin:kotlin-stdlib-common:jar:1.2.71:compile
[INFO] | +- org.eclipse.collections:eclipse-collections-api:jar:11.0.0:compile (version selected from constraint [7.0.0,))
[INFO] | +- org.eclipse.collections:eclipse-collections:jar:11.0.0:compile (version selected from constraint [7.0.0,))
[INFO] | +- org.eclipse.collections:eclipse-collections-forkjoin:jar:11.0.0:compile (version selected from constraint [7.0.0,))
[INFO] | +- net.jpountz.lz4:lz4:jar:1.3.0:compile
[INFO] | \- org.mapdb:elsa:jar:3.0.0-M5:compile
Now there is kotlin
version: 1.6.21 out there
mapdb
has not been updated for 2 year, I'm getting
Caused by: java.lang.NoSuchMethodError: kotlin.jvm.internal.MutablePropertyReference1Impl.
because of this.
Any ideas how to fix that in the future?
My current workaround is:
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots-abilities</artifactId>
<version>${telegrambots.version}</version>
<exclusions>
<exclusion>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
</exclusion>
</exclusions>
</dependency>
Please include this in the documentation.