You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should hopefully be solved by #2543 in 1.7.10, will post updates here.
Stacktrace
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)
The text was updated successfully, but these errors were encountered:
Apparently, this is still happening for Dokka 1.7.10 which is downloaded from gradlePluginPortal(), but it doesn't happen to Dokka 1.7.10 downloaded from mavenCentral(). For some reason, Dokka's .pom file differs for these two repositories, even though it was published not only from the same branch/commit, but from the same build.
Workarounds:
Get Dokka from mavenCentral(). If it's first on the list, it should be given a priority, but you can still exclude from gradlePluginPortal() just in case or if you don't want to change the order.
repositories {
mavenCentral()
gradlePluginPortal {
content {
// Might not even be needed since mavenCentral() should take precedence
excludeGroup("org.jetbrains.dokka")
}
}
}
Use Gradle 7.5, which can now read Kotlin 1.7 metadata, so the error should be gone.
There's a follow up PR with an attempt to fix it: #2570
We haven't seen this problem for a while, no new reports or anything that would indicate it hasn't been resolved, so I'll close the issue as fixed for now.
Build fails if
Dokka
is used as a dependency inbuildSrc
, initially reported in the community slack: link to messageThe same problem is relevant for kotlinx.serialization.
Workarounds
7.5-rc-2
, it will solve the problemFix
Should hopefully be solved by #2543 in 1.7.10, will post updates here.
Stacktrace
The text was updated successfully, but these errors were encountered: