darych
03/14/2019, 2:33 PM[WARNING] Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
C:/Users/somebody/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.21/kotlin-stdlib-jdk8-1.3.21.jar (version 1.3)
C:/Users/somebody/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.2.41/kotlin-stdlib-1.2.41.jar (version 1.2)
C:/Users/somebody/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.2.41/kotlin-stdlib-jdk7-1.2.41.jar (version 1.2)
[WARNING] Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
In Maven dependencies I see only this with 1.2.41 version:
[INFO] +- org.jetbrains.kotlin:kotlin-stdlib-jdk8:jar:1.3.21:compile
[INFO] | +- org.jetbrains.kotlin:kotlin-stdlib:jar:1.2.41:compile
[INFO] | | \- org.jetbrains:annotations:jar:13.0:compile
[INFO] | \- org.jetbrains.kotlin:kotlin-stdlib-jdk7:jar:1.2.41:compile
kotlin-stdlib
instead of kotlin-stdlib-jdk8
there is no dependency on kotlin 1.2.41kotlin-stdlib-jdk8
againkotlin-stdlib-jdk8
transitively use kotlin-stdlib
version 1.2.41? If it's necessary, maybe warning should be removed?ilya.gorbunov
03/14/2019, 4:24 PMkotlin-stdlib
and kotlin-stdlib-jdk7
are brought transitively by some other dependency? Or their versions are specified in the dependencyManagement
section explicitly or with some BOM import?darych
03/14/2019, 5:20 PM[INFO] +- org.jetbrains.kotlin:kotlin-test:jar:1.3.21:test
[INFO] | +- org.jetbrains.kotlin:kotlin-test-common:jar:1.3.21:test
[INFO] | | \- org.jetbrains.kotlin:kotlin-stdlib-common:jar:1.3.21:test
[INFO] | \- org.jetbrains.kotlin:kotlin-stdlib:jar:1.2.41:compile
[INFO] | \- org.jetbrains:annotations:jar:13.0:compile
[INFO] +- org.mockito:mockito-core:jar:2.15.0:test
[INFO] | +- net.bytebuddy:byte-buddy:jar:1.7.11:test
[INFO] | +- net.bytebuddy:byte-buddy-agent:jar:1.7.11:test
[INFO] | \- org.objenesis:objenesis:jar:2.6:test
[INFO] +- org.jetbrains.kotlin:kotlin-stdlib-jdk8:jar:1.3.21:compile
[INFO] | \- org.jetbrains.kotlin:kotlin-stdlib-jdk7:jar:1.2.41:compile
Dependencies declaration:
<kotlin.version>1.3.21</kotlin.version>
....
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test</artifactId>
<version>${kotlin.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
<version>${kotlin.version}</version>
</dependency>