Edit: Solved
After updating to Kotlin 1.9.20 I get the following error:
Copy code
Plugin [id: 'org.jetbrains.kotlin.kapt'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (plugin dependency must include a version number for this source)
It was working fine before like this:
Copy code
plugins {
kotlin("kapt")
}
It seems to work if I manually add the version:
Copy code
plugins {
kotlin("kapt") version "1.9.20"
}
eygraber
11/23/2023, 7:35 PM
Looks like the issue was KGP classloader issues. Adding a classpath dependency on KGP solved the issue
🤔 1
t
tapchicoma
11/23/2023, 9:23 PM
Indeed Kapt plugin is a part of KGP jar. Though following should work:
Copy code
plugins {
id("org.jetbrains.kotlin.kapt") version "2.0.0-Beta1"
}