Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: clarify how to add annotation processor dependencies for Kotlin and Groovy projects #585

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading