From 07835fda598cee5dab41b1f2300d7aee3b823fbb Mon Sep 17 00:00:00 2001 From: Clemente Date: Fri, 31 May 2024 16:16:44 +0200 Subject: [PATCH] Fix kapt autodiscovery deprecation --- packages/plugin-compiler/build.gradle.kts | 4 ++++ packages/plugin-compiler/gradle.properties | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/plugin-compiler/build.gradle.kts b/packages/plugin-compiler/build.gradle.kts index 507718bbeb..e3059adea5 100644 --- a/packages/plugin-compiler/build.gradle.kts +++ b/packages/plugin-compiler/build.gradle.kts @@ -23,11 +23,15 @@ plugins { val mavenPublicationName = "compilerPlugin" dependencies { + kapt("org.jetbrains.kotlin:kotlin-compiler-embeddable:${Versions.kotlin}") + annotationProcessor("org.jetbrains.kotlin:kotlin-compiler-embeddable:${Versions.kotlin}") compileOnly("org.jetbrains.kotlin:kotlin-compiler-embeddable:${Versions.kotlin}") // Added to prevent warnings about inconsistent versions // w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath: // w: Consider providing an explicit dependency on kotlin-reflect 1.4 to prevent strange errors implementation(kotlin("reflect")) + kapt(Deps.autoService) + annotationProcessor(Deps.autoService) compileOnly(Deps.autoService) kapt(Deps.autoServiceAnnotation) diff --git a/packages/plugin-compiler/gradle.properties b/packages/plugin-compiler/gradle.properties index 4cfcff8d99..63de1180aa 100644 --- a/packages/plugin-compiler/gradle.properties +++ b/packages/plugin-compiler/gradle.properties @@ -14,4 +14,3 @@ # limitations under the License. # kotlin.mpp.applyDefaultHierarchyTemplate=false -kapt.include.compile.classpath=false