Gradle plugin not published for Kotlin 2.0
Currently the Gradle plugin does not support Kotlin version 2.0 as it has incompatible features. Could support for Kotlin 2.0 be added?
e: There are some plugins incompatible with language version 2.0:
co.touchlab.kermit.irplugin.KermitComponentRegistrar
Please use language version 1.9 or below
Release 2.0.5 uses Kotlin 2.0.21, you must be behind.
@pm47 The Kermit Gradle plugin (referring to co.touchlab:kermit-gradle-plugin) latest version is 1.2.3 in Maven. This issue is reproducible if you configure Kermit in build.gradle.kts of :app.
To reproduce the issue, add import co.touchlab.kermit.gradle.StripSeverity to the Gradle file and do the following configuration for Kermit:
kermit {
if (project.hasProperty("environment")) {
if (project.property("environment") == "release") {
stripBelow = StripSeverity.Error
}
}
}
This throws the exact error reported in this issue during compilation.
- Kotlin version 2.1.0
- AGP version 8.6.1
@pm47 The Kermit Gradle plugin (referring to
co.touchlab:kermit-gradle-plugin) latest version is 1.2.3 in Maven. This issue is reproducible if you configure Kermit inbuild.gradle.ktsof:app. To reproduce the issue, addimport co.touchlab.kermit.gradle.StripSeverityto the Gradle file and do the following configuration for Kermit:kermit { if (project.hasProperty("environment")) { if (project.property("environment") == "release") { stripBelow = StripSeverity.Error } } }This throws the exact error reported in this issue during compilation.
- Kotlin version 2.1.0
- AGP version 8.6.1
Idd, the issue only happens with the Gradle plugin. The runtime dependency is working just fine with Kotlin 2.0.
We deprecated the plugins with the Kermit 2.0 release due lack of interest and the maintenance required to keep it up to date. The plugins would need to be updated to the latest Kotlin as well as to make sure it covers new Kermit api's correctly. If anyone is able to take this on, we aren't opposed to publishing an update