poohbar
01/23/2018, 2:00 PMRuntime JAR files in the classpath should have the same version.
For the life of me I can't find what's pulling in the wrong version of stdlib.etibaldi
01/23/2018, 2:03 PMpoohbar
01/23/2018, 2:03 PMdependency:analyze
did not really help me. It just says that the dependency is undeclared but somehow it's there.etibaldi
01/23/2018, 2:05 PMdependency:tree
?poohbar
01/23/2018, 2:06 PMdependency:analyze
but I will try tree
<exclusion>
?stdlib-jre8
declared explicitely but I also had to declare stdlib
.
Now someone could explain to me how Kotlin is packaged and what does it mean to use stdlib-jre8
vs stdlib
dalexander
01/23/2018, 2:17 PMilya.gorbunov
01/23/2018, 3:01 PMkotlin-stdlib-jre8
is an additional artifact for kotlin-stdlib
with java 8 specific API.
You need to have both in runtime if you want to use kotlin-stdlib-jre8
.
Usually kotlin-stdlib
and kotlin-stdlib-jre7
are pulled in as transitive dependencies of kotlin-stdlib-jre8
dalexander
01/23/2018, 3:02 PM