Robert Jaros
06/20/2022, 4:51 PMbuildSrc
e: /opt/rjaros/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.7.0/51736992f422993a1e741051bdf3c12801bc1ca1/kotlin-stdlib-common-1.7.0.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1.
e: /opt/rjaros/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.7.0/fbeaa8fa63cbab09c547083a449097be6660a9a/kotlin-stdlib-jdk7-1.7.0.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1.
e: /opt/rjaros/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.7.0/362da0b4951ed79a6591743a7fddcfb8c73809f6/kotlin-stdlib-jdk8-1.7.0.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1.
e: /opt/rjaros/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.7.0/a5f42c684ad9003160ef0d0f693ecf0ba7b13549/kotlin-stdlib-1.7.0.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1.implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.7.0")
buildSrc
, but until now there was no problems:
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
/opt/rjaros/.gradle/wrapper/dists/gradle-7.4.2-all/9uukhhbclvbegdvsww0j0cr3p/gradle-7.4.2/lib/kotlin-stdlib-1.5.31.jar (version 1.5)
/opt/rjaros/.gradle/wrapper/dists/gradle-7.4.2-all/9uukhhbclvbegdvsww0j0cr3p/gradle-7.4.2/lib/kotlin-stdlib-common-1.5.31.jar (version 1.5)
/opt/rjaros/.gradle/wrapper/dists/gradle-7.4.2-all/9uukhhbclvbegdvsww0j0cr3p/gradle-7.4.2/lib/kotlin-stdlib-jdk7-1.5.31.jar (version 1.5)
/opt/rjaros/.gradle/wrapper/dists/gradle-7.4.2-all/9uukhhbclvbegdvsww0j0cr3p/gradle-7.4.2/lib/kotlin-stdlib-jdk8-1.5.31.jar (version 1.5)
/opt/rjaros/.gradle/wrapper/dists/gradle-7.4.2-all/9uukhhbclvbegdvsww0j0cr3p/gradle-7.4.2/lib/kotlin-reflect-1.5.31.jar (version 1.5)
I don't know if it is related but I don't have any other old kotlin dependencies in my project.Ignat Beresnev
06/20/2022, 5:06 PMRobert Jaros
06/20/2022, 5:07 PMIgnat Beresnev
06/20/2022, 5:34 PMdokka-base
and configuring it in allprojects {}
or something similar, an example from kotlinx.serialization 🙂
So it looks like we solved the issue for the majority of cases, but it broke your particular case 😞 We'll try to think how to get around that, thanks for reporting it!Javier
06/20/2022, 5:48 PMRobert Jaros
06/20/2022, 5:53 PMIgnat Beresnev
06/20/2022, 5:58 PM7.5-rc-2
seems to help
@Javier is there an issue/thread where I can read more on these changes/problems?Javier
06/20/2022, 6:07 PMVadim Mishenev
06/20/2022, 7:02 PMimplementation("org.jetbrains.dokka:dokka-gradle-plugin:1.7.0") {
exclude("org.jetbrains.kotlin","kotlin-stdlib-jdk8")
}
mbonnin
06/20/2022, 8:31 PMapiVersion = 1.5
? If not, upgrading Gradle seems like a safer bet to avoid runtime crashes. (edit: the link above seems to indicate that dokka is indeed compiled for 1.4
but says nothing about the transitive dependencies)kotlin-stdlib
as a compileOnly
dependency? The Kotlin plugin does this (cf https://youtrack.jetbrains.com/issue/KT-41142/Kotlin-version-conflict-when-using-Kotlin-Gradle-plugins-in-pre-compiled-script-plugin#focus=[…]69.0-0)Joffrey
06/21/2022, 2:37 PMbuildSrc
to share configuration between subprojects in https://github.com/joffrey-bion/krossbow.
Will try with Gradle 7.5-rcIgnat Beresnev
06/21/2022, 2:58 PM1.7.10
in about 2 weeks or so.Joffrey
06/21/2022, 3:51 PM