Waldemar Kornewald
12/11/2025, 8:45 PMModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.2.0, expected version is 2.0.0.
That's why I split the project up into two separate root projects (each with settings.gradle.kts): one for the lib which uses Kotlin 2.2.21, and one for the Gradle plugin which uses Kotlin 2.0.21. But this requires lots of Gradle machinery and maintaining two different build-logic variants.
When I look at other open-source projects containing Gradle plugins, they don't seem to make such a split even though they use the latest Kotlin version, too. Somehow they don't seem to be running into this problem. What's different/wrong with my setup:
https://github.com/ensody/kotlin-default-throws-plugintrevjones
12/11/2025, 9:28 PMtrevjones
12/11/2025, 9:29 PMmbonnin
12/11/2025, 10:30 PMmbonnin
12/11/2025, 10:30 PMapiVersion /`languageVersion`Waldemar Kornewald
12/12/2025, 9:04 AMmbonnin
12/12/2025, 9:09 AMcoreLibrairiesVersionmbonnin
12/12/2025, 9:10 AMWaldemar Kornewald
12/12/2025, 5:52 PMmbonnin
12/12/2025, 6:07 PMWaldemar Kornewald
12/12/2025, 6:10 PM