tabilzad / ktor-docs-plugin

Provides Ktor Swagger support
34 stars 6 forks source link

Plugin incompatible with kotlin version 2.0.20 #26

Closed AlbRoehm closed 1 month ago

AlbRoehm commented 1 month ago

When using the kotlin v2.0.20 (via gradle plugin "org.jetbrains.kotlin.jvm" version 2.0.20) the compileKotlin build step is interrupted by the following exception. Going back to v2.0.10 or v.2.0.0 resolves this issue.

java.lang.NoClassDefFoundError: org/jetbrains/kotlin/ir/util/IrMessageLoggerKt
    at io.github.tabilzad.ktor.k2.SwaggerDeclarationChecker.<init>(SwaggerDeclarationChecker.kt:29)
    at io.github.tabilzad.ktor.FirCheckers$declarationCheckers$1.<init>(KtorMetaPluginRegistrar.kt:40)
    at io.github.tabilzad.ktor.FirCheckers.<init>(KtorMetaPluginRegistrar.kt:37)
    at io.github.tabilzad.ktor.FirCheckers$Companion.getFactory$lambda$0(KtorMetaPluginRegistrar.kt:45)
tabilzad commented 1 month ago

Thanks for reporting, will take a look.

tabilzad commented 1 month ago

0.6.4 has been published with support for 2.0.20. It should be available in maven later today or tomorrow.