From 52870588758223e019c9a9a3a7032378a1ce5127 Mon Sep 17 00:00:00 2001 From: Sven Braune Date: Thu, 24 Aug 2023 15:51:45 +0200 Subject: [PATCH] # fixed generation issue --- crystal-map-processor/build.gradle | 4 ++-- .../com/schwarz/crystalprocessor/generation/CodeGenerator.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crystal-map-processor/build.gradle b/crystal-map-processor/build.gradle index 16bb5bb5..71a339c3 100644 --- a/crystal-map-processor/build.gradle +++ b/crystal-map-processor/build.gradle @@ -6,8 +6,8 @@ apply plugin: 'kotlin-kapt' dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation 'com.squareup:kotlinpoet:1.13.2' - implementation 'com.squareup:kotlinpoet-metadata:1.13.2' + implementation 'com.squareup:kotlinpoet:1.6.0' + implementation 'com.squareup:kotlinpoet-metadata:1.6.0' implementation project(path: ':crystal-map-api', configuration: 'default') implementation 'org.apache.commons:commons-lang3:3.4' implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.13.3" diff --git a/crystal-map-processor/src/main/java/com/schwarz/crystalprocessor/generation/CodeGenerator.kt b/crystal-map-processor/src/main/java/com/schwarz/crystalprocessor/generation/CodeGenerator.kt index f52341db..f3201e55 100644 --- a/crystal-map-processor/src/main/java/com/schwarz/crystalprocessor/generation/CodeGenerator.kt +++ b/crystal-map-processor/src/main/java/com/schwarz/crystalprocessor/generation/CodeGenerator.kt @@ -21,7 +21,7 @@ class CodeGenerator(private val filer: Filer) { } val codePath = processingEnvironment.options[CoachBaseBinderProcessor.KAPT_KOTLIN_GENERATED_OPTION_NAME] - val fileWithHeader = entityToGenerate.toBuilder().addFileComment(HEADER).build() + val fileWithHeader = entityToGenerate.toBuilder().addComment(HEADER).build() // used for kapt returns null for legacy annotationprocessor declarations if (codePath != null) {