Skip to content

Commit

Permalink
docs: clarify how to add annotation processor dependencies for Kotlin…
Browse files Browse the repository at this point in the history
… and Groovy projects (#585)
  • Loading branch information
wetted authored and sdelamo committed Aug 14, 2024
1 parent bd2ddd9 commit 4a56d8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,5 @@ dependency:jakarta.persistence-api[scope="annotationProcessor", groupId="jakarta

dependency:jakarta.persistence-api[scope="compile", groupId="jakarta.persistence", version="3.1.0"]

NOTE: The annotation processors noted above have different dependency requirements for different language-based projects.
For Java add annotation processors in annotationProcessor scope, for Kotlin, add them in https://docs.micronaut.io/4.4.3/guide/#kaptOrKsp[kapt or ksp scope], and for Groovy add them in compileOnly scope
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Micronaut Data supports Spring Data annotations. To use them add the following d

dependency:micronaut-data-processor[scope="annotationProcessor", groupId="io.micronaut.data"]

NOTE: For Kotlin, add the `micronaut-data-processor` dependency in https://docs.micronaut.io/4.4.3/guide/#kaptOrKsp[kapt or ksp scope], and for Groovy add `micronaut-data-processor` in compileOnly scope.

The following table summarizes the Spring Data annotations that Micronaut Data supports and the Micronaut annotation that they map to at compilation time:

.Supported Spring Data Annotations
Expand Down

0 comments on commit 4a56d8b

Please sign in to comment.