i keep getting this error when i go to publish wit...
# gradle
n
i keep getting this error when i go to publish with
maven-publish
we are using
id("org.jetbrains.dokka") version "1.8.20"
,
classpath("org.jetbrains.dokka:dokka-base:1.8.20")
and
classpath("org.jetbrains.dokka:dokka-core:1.8.20")
Copy code
Unable to find method ''void org.jetbrains.dokka.utilities.TypeReference.<init>(com.fasterxml.jackson.core.type.TypeReference, kotlin.jvm.internal.DefaultConstructorMarker)''
'void org.jetbrains.dokka.utilities.TypeReference.<init>(com.fasterxml.jackson.core.type.TypeReference, kotlin.jvm.internal.DefaultConstructorMarker)'
t
cc @Ignat Beresnev
thank you color 1
i
Could you please send the full stacktrace (run with
--stacktrace
) and the output of
./gradlew buildEnvironment
? I think I know what the problem is, but I'd like to understand how it gets there and if it's possible to fix on your side
n
publishToMavenLocal --stacktrace
gradlew buildEnvironment
this is also happing on our Github Actions workflow, on a github hosted runner
ubuntu-20.04
and using the
actions/setup-java@v3.9.0
action for setting up a JDK
Copy code
distribution: "adopt"
java-version: "17"
i
Could you please check if you have any Dokka plugins applied, especially this one:
Copy code
org.jetbrains.dokka:kotlin-as-java-plugin
its version must match the Dokka version
n
it was set to
1.7.20
thanks
i
Thank you for the report! It's an interesting case for us, I didn't think it would backfire in the way that it did... Here's the change that caused it, for anyone interested
n
thanks for the help