Skip to content

Commit

Permalink
# fixed generation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sbra0902 committed Aug 24, 2023
1 parent 07091d8 commit 5287058
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crystal-map-processor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5287058

Please sign in to comment.