Skip to content

Commit 5a5dd30

Browse files
authored
Merge pull request #3563 from kliushnichenko/feat/docs-improvements
annotation processors order note
2 parents 372430a + 893bf5a commit 5a5dd30

4 files changed

Lines changed: 22 additions & 0 deletions

File tree

docs/asciidoc/modules/avaje-inject.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
<version>...</version>
1919
<configuration>
2020
<annotationProcessorPaths>
21+
<!-- if using lombok, it must be placed before the avaje-inject-generator -->
22+
<!-- avaje-inject-generator must be placed before the jooby-apt -->
2123
<path>
2224
<groupId>io.avaje</groupId>
2325
<artifactId>avaje-inject-generator</artifactId>
@@ -42,6 +44,11 @@ dependencies {
4244
}
4345
----
4446

47+
[NOTE]
48+
====
49+
Please note that the order of annotation processors is important. For example, if you're using `lombok` and `avaje-inject`, the correct order should be: `lombok` -> `avaje-inject` -> `jooby-apt`
50+
====
51+
4552
3) Install Avaje Inject:
4653

4754
.Installing Avaje Inject

docs/asciidoc/modules/avaje-validator.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Bean validation via https://avaje.io/validator/[Avaje Validator].
2222
<version>...</version>
2323
<configuration>
2424
<annotationProcessorPaths>
25+
<!-- if using lombok, it must be placed before the generator -->
2526
<path>
2627
<groupId>io.avaje</groupId>
2728
<artifactId>avaje-validator-generator</artifactId>
@@ -46,6 +47,11 @@ dependencies {
4647
}
4748
----
4849

50+
[NOTE]
51+
====
52+
Please note that the order of annotation processors is important. For example, if you're using `lombok`, the correct order should be: `lombok` -> `avaje-validator`
53+
====
54+
4955
3) Install
5056

5157
.Java

docs/asciidoc/mvc-api.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,8 @@ on them (mostly annotations processors).
939939
<artifactId>maven-compiler-plugin</artifactId>
940940
<configuration>
941941
<annotationProcessorPaths>
942+
<!-- if using lombok, it must be placed before the jooby-apt -->
943+
<!-- if using avaje-inject, it must be placed after lombok, but before the jooby-apt -->
942944
<path>
943945
<groupId>io.jooby</groupId>
944946
<artifactId>jooby-apt</artifactId>
@@ -980,3 +982,8 @@ tasks.withType(JavaCompile) {
980982
]
981983
}
982984
----
985+
986+
[NOTE]
987+
====
988+
Please note that the order of annotation processors is important. For example, if you're using `lombok` and `avaje-inject`, the correct order should be: `lombok` -> `avaje-inject` -> `jooby-apt`
989+
====

modules/jooby-cli/src/main/resources/cli/pom.xml.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@
121121
{{#if apt}}
122122
<configuration>
123123
<annotationProcessorPaths>
124+
<!-- if using lombok, it must be placed before the jooby-apt -->
125+
<!-- if using avaje-inject, it must be placed after lombok, but before the jooby-apt -->
124126
<path>
125127
<groupId>io.jooby</groupId>
126128
<artifactId>jooby-apt</artifactId>

0 commit comments

Comments
 (0)