From 5b0b29996a3a237ea1904da3737563e253f53f60 Mon Sep 17 00:00:00 2001 From: namo Date: Tue, 13 Sep 2022 21:02:13 +0900 Subject: [PATCH] fix: Deal with kapt ref. https://kotlinlang.org/docs/lombok.html#using-with-kapt - warnings: ``` > Task :compileKotlin w: Lombok Kotlin compiler plugin is an experimental feature. See: https://kotlinlang.org/docs/components-stability.html. > Task :kaptGenerateStubsTestKotlin w: Lombok Kotlin compiler plugin is an experimental feature. See: https://kotlinlang.org/docs/components-stability.html. > Task :compileTestKotlin w: Lombok Kotlin compiler plugin is an experimental feature. See: https://kotlinlang.org/docs/components-stability.html. ``` --- demo-kotlin-with-lombok/build.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/demo-kotlin-with-lombok/build.gradle.kts b/demo-kotlin-with-lombok/build.gradle.kts index 38ce99b..f1b3bb8 100644 --- a/demo-kotlin-with-lombok/build.gradle.kts +++ b/demo-kotlin-with-lombok/build.gradle.kts @@ -4,7 +4,9 @@ plugins { id("org.springframework.boot") version "2.7.3" id("io.spring.dependency-management") version "1.0.13.RELEASE" kotlin("jvm") version "1.6.21" + kotlin("kapt") version "1.6.21" kotlin("plugin.spring") version "1.6.21" + kotlin("plugin.lombok") version "1.6.21" } group = "com.example" @@ -41,3 +43,7 @@ tasks.withType { tasks.withType { useJUnitPlatform() } + +kapt { + keepJavacAnnotationProcessors = true +}