From 83cb5c148120e124ecaf2071dd959e666a99b691 Mon Sep 17 00:00:00 2001 From: Dean Wette Date: Mon, 29 Apr 2024 23:24:25 -0500 Subject: [PATCH] docs: clarify how to add annotation processor dependencies for Kotlin and Groovy projects (#585) --- .../docs/guide/micronautInsideSpring/springBootStarter.adoc | 2 ++ .../docs/guide/springToMicronaut/springDataAnnotations.adoc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/main/docs/guide/micronautInsideSpring/springBootStarter.adoc b/src/main/docs/guide/micronautInsideSpring/springBootStarter.adoc index d3d6a17f3..aa6813f91 100644 --- a/src/main/docs/guide/micronautInsideSpring/springBootStarter.adoc +++ b/src/main/docs/guide/micronautInsideSpring/springBootStarter.adoc @@ -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 diff --git a/src/main/docs/guide/springToMicronaut/springDataAnnotations.adoc b/src/main/docs/guide/springToMicronaut/springDataAnnotations.adoc index 1a70fb863..26b6bb90c 100644 --- a/src/main/docs/guide/springToMicronaut/springDataAnnotations.adoc +++ b/src/main/docs/guide/springToMicronaut/springDataAnnotations.adoc @@ -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