I'm having an interesting compiler issue when upgr...
# compiler
f
I'm having an interesting compiler issue when upgrading to Kotlin 1.4.0. One of the gradle plugins we use embeds the kotlin compiler to use it for some analyzation, but this turns into an error when upgrading the project. The error we get when building is here: https://hasteb.in/otohideq.sql. Which seems like some sort of stdlib versioning error, but I'm not sure how that could be, as the gradle plugin and its dependents all use the correct version of kotlin (1.4.10). I have looked this error up, but all of the reported issues are using spring boot, has this been encountered elsewhere? The Gradle Plugin responsible for running the embedded compiler is here: https://github.com/FalseHonesty/preprocessor/blob/kotlin-1.4/build.gradle.kts.
After some more searching, the dependencies graph of the gradle plugin looks wrong: https://scans.gradle.com/s/6rgtftkectmc2. Most configurations are correct, but the kotlin compiler classpath is wrong (pointing to version 1.3.41?), as seen here: https://scans.gradle.com/s/6rgtftkectmc2/dependencies?toggled=W1swXSxbMCwxMF0sWzAsMTFdXQ.
I figured out that it was due to using the
kotlin-dsl
plugin, which automatically uses the gradle embedded version (1.3.41 in this case). However, once switching to explicit 1.4 dependencies, I ran into this issue: https://youtrack.jetbrains.com/issue/KT-41142.
And upon using that built plugin, I get this error: https://hasteb.in/nuzusume.kotlin. I assume this is related to the youtrack issue linked above?