Looks like if I have `dokka-gradle-plugin:0.9.15` ...
# dokka
r
Looks like if I have
dokka-gradle-plugin:0.9.15
and
kotlin-gradle-plugin:1.1.50
my build blows up with
Copy code
Using Kotlin incremental compilation
e: java.lang.NoSuchMethodError: kotlin.reflect.jvm.internal.KClassImpl.getData()Lkotlin/reflect/jvm/internal/ReflectProperties$LazyVal;
        at kotlin.reflect.full.KClasses.getMemberProperties(KClasses.kt:149)
        at org.jetbrains.kotlin.compilerRunner.ArgumentUtils.convertArgumentsToStringList(ArgumentUtils.java:59)
        at org.jetbrains.kotlin.compilerRunner.ArgumentUtils.convertArgumentsToStringList(ArgumentUtils.java:47)
        at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.compileWithDaemonOrFallback(GradleKotlinCompilerRunner.kt:147)
        at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.compileWithDaemonOrFallback(GradleKotlinCompilerRunner.kt:52)
        at org.jetbrains.kotlin.compilerRunner.KotlinCompilerRunner.runCompiler(KotlinCompilerRunner.kt:127)
        at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.runJvmCompiler(GradleKotlinCompilerRunner.kt:107)
        at org.jetbrains.kotlin.gradle.tasks.KotlinCompile.callCompiler$kotlin_gradle_plugin(Tasks.kt:326)
        at org.jetbrains.kotlin.gradle.tasks.KotlinCompile.callCompiler$kotlin_gradle_plugin(Tasks.kt:231)
        at org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile.execute(Tasks.kt:203)
        …
s
Just checked, couldn’t reproduce. Are you sure that it caused by Dokka? Are you using in process compilation of Kotlin?
r
I’m just running with Gradle and the problem disappears if I exclude the dokka plugin
Uncommenting lines 11 & 32 of build.gradle causes the issue
s
Thanks! Found the problem There are two of them. Kotlin Gradle plugin uses reflect from poisonous Gradle junkyard classloader Dokka Gradle Plugin bundles kotlin-stdlib & kotlin-reflect inside it, making it impossible to fix this with rules.
Second issue can be fixed in Dokka 0.9.16
Found quick workaround for you. Use newer version of gradle, such as 3.5 of greater
r
ah, yeah. I was meaning to do that upgrade. I know we’re pinned to an earlier one on some of our other apps due to legacy plugins but I don’t think I’m using any in this particular lib