Hi, I'm getting some warning everytime I compile t...
# gradle
t
Hi, I'm getting some warning everytime I compile the
buildSrc
(I am using precompiled kotlin scripts for configuring our projects):
Copy code
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    /home/till/.gradle/wrapper/dists/gradle-6.0-all/cra2s42cvogxluqqpvbc5e9xd/gradle-6.0/lib/kotlin-stdlib-1.3.50.jar (version 1.3)
    /home/till/.gradle/wrapper/dists/gradle-6.0-all/cra2s42cvogxluqqpvbc5e9xd/gradle-6.0/lib/kotlin-stdlib-common-1.3.50.jar (version 1.3)
    /home/till/.gradle/wrapper/dists/gradle-6.0-all/cra2s42cvogxluqqpvbc5e9xd/gradle-6.0/lib/kotlin-stdlib-jdk8-1.3.50.jar (version 1.3)
    /home/till/.gradle/wrapper/dists/gradle-6.0-all/cra2s42cvogxluqqpvbc5e9xd/gradle-6.0/lib/kotlin-stdlib-jdk7-1.3.50.jar (version 1.3)
    /home/till/.gradle/wrapper/dists/gradle-6.0-all/cra2s42cvogxluqqpvbc5e9xd/gradle-6.0/lib/kotlin-reflect-1.3.50.jar (version 1.3)
    /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.3.60/5cb6bf19bab36ab9d10b216356e869250c686a09/kotlin-stdlib-jdk8-1.3.60.jar (version 1.3)
    /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.3.50/b499f22fd7c3e9c2e5b6c4005221fa47fc7f9a7a/kotlin-reflect-1.3.50.jar (version 1.3)
    /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.3.60/a42a01c0338795930e0a7d8f9d19acafdd1c50ee/kotlin-stdlib-jdk7-1.3.60.jar (version 1.3)
    /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jre7/1.1.0/ef03cfed144ff47eed2cab1f7be4381bc18a6237/kotlin-stdlib-jre7-1.1.0.jar (version 1.1)
    /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.60/984644b61450add3bcef8cf20f948fec458b420d/kotlin-stdlib-1.3.60.jar (version 1.3)
    /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.3.60/538bd29b2d5a7d278a7188f89c3b84183fa37f75/kotlin-stdlib-common-1.3.60.jar (version 1.3)
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
w: /home/till/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jre7/1.1.0/ef03cfed144ff47eed2cab1f7be4381bc18a6237/kotlin-stdlib-jre7-1.1.0.jar: kotlin-stdlib-jre7 is deprecated. Please use kotlin-stdlib-jdk7 instead
Kotlin 1.3.60 is newer than 1.3.50 packaged with gradle 6. But why is there this kotlin-stdlib-jre7-1.1.0.jar? Does anybody know?
p
have you tried gradle 6.0.1?
t
I just tried it. Unfortunately the warning is still there.
t
imho, one of dependencies is pulling kotlin
1.1.0
stdlib. You could check it via build scan.
t
Thanks, I found it. I couldn't do a build scan, but I could run
../gradlew :dependencies
inside
buildSrc
and it revealed that some old and unsused plugin pulled in the library.
👍 1
t
Gradle 6.X becomes more strict regarding dependencies version. That is why you saw it after update