From 6c187a32dbf0c95b3f491d7340cca14bfdac0521 Mon Sep 17 00:00:00 2001 From: namo Date: Tue, 13 Sep 2022 20:55:44 +0900 Subject: [PATCH] fix: Deal with kotlin-plugin-lombok ref. https://kotlinlang.org/docs/lombok.html#gradle - lombok.config: https://github.com/kotlin-hands-on/kotlin-lombok-examples/blob/master/kotlin_lombok_gradle/withconfig/lombok.config --- demo-kotlin-with-lombok/build.gradle.kts | 6 ++++++ demo-kotlin-with-lombok/lombok.config | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 demo-kotlin-with-lombok/lombok.config diff --git a/demo-kotlin-with-lombok/build.gradle.kts b/demo-kotlin-with-lombok/build.gradle.kts index 38ce99b..3479b57 100644 --- a/demo-kotlin-with-lombok/build.gradle.kts +++ b/demo-kotlin-with-lombok/build.gradle.kts @@ -5,6 +5,8 @@ plugins { id("io.spring.dependency-management") version "1.0.13.RELEASE" kotlin("jvm") version "1.6.21" kotlin("plugin.spring") version "1.6.21" + kotlin("plugin.lombok") version "1.6.21" + id("io.freefair.lombok") version "6.5.1" } group = "com.example" @@ -41,3 +43,7 @@ tasks.withType { tasks.withType { useJUnitPlatform() } + +kotlinLombok { + lombokConfigurationFile(file("lombok.config")) +} diff --git a/demo-kotlin-with-lombok/lombok.config b/demo-kotlin-with-lombok/lombok.config new file mode 100644 index 0000000..5850dfc --- /dev/null +++ b/demo-kotlin-with-lombok/lombok.config @@ -0,0 +1,2 @@ +config.stopBubbling = true +lombok.getter.noisPrefix = true