You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/docs/asciidoc/index.adoc
+48Lines changed: 48 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -306,6 +306,7 @@ The https://plugins.gradle.org/plugin/io.micronaut.library[Micronaut library plu
306
306
* Applies the https://search.maven.org/artifact/io.micronaut.platform/micronaut-platform[Micronaut Bill of Materials (BOM)]
307
307
* Applies the `java-library` plugin
308
308
* Configures annotation processing for the current language (Groovy, Java or Kotlin)
309
+
* <<#sec:automatic-annotation-processors, Adds annotation processors automatically>> for Micronaut modules
309
310
310
311
The `micronaut` DSL can be used to configure how this behaves.
311
312
@@ -1932,6 +1933,52 @@ micronaut {
1932
1933
In addition, it exposes a `openApiGenerator` configuration which can be used to declare additional dependencies to put on the generator classpath.
1933
1934
This can be useful in case you want to implement your own generators, in which case you will also have to implement custom tasks which extend the link:api/io/micronaut/gradle/openapi/tasks/AbstractOpenApiGenerator.html[AbstractOpenApiGenerator task type].
1934
1935
1936
+
[[additional-notes]]
1937
+
== Additional Notes
1938
+
1939
+
[[sec:automatic-annotation-processors]]
1940
+
=== Automatic annotationProcessor dependencies
1941
+
1942
+
When the plugin detects you have a dependency with a group id corresponding to a known annotation processor for it, it adds the annotation processor automatically. The following annotation processors are currently supported by this feature.
In some circumstances, automatic dependencies – e.g. annotation processors listed above – can get in the way. This should be rare, but it is possible to suppress them, as follows. It has no default and using suppression shifts responsibility of adding the dependencies to the user.
0 commit comments