Skip to content

Commit 7df9ff8

Browse files
committed
Documentation for incremental annotation processing.
1 parent e1184ef commit 7df9ff8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/asciidoc/mvc-api.adoc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,21 @@ To create a new MVC project open the `jooby` console and type:
6666
The <<getting-started, jooby console>> takes care of all configuration steps required by the
6767
annotation processing tool.
6868

69+
Using Gradle? You may enable incremental annotation processing support:
70+
71+
.build.gradle
72+
[source, groovy, role = "secondary", subs="verbatim,attributes"]
73+
----
74+
tasks.withType(JavaCompile) {
75+
options.compilerArgs += [
76+
'-parameters',
77+
'-Ajooby.incremental=true'
78+
]
79+
}
80+
----
81+
82+
This will cause however – due to technical a limitation – that generated classes will be loaded with reflection instead of the `ServiceLoader`.
83+
6984
=== Registration
7085

7186
Mvc routes need to be registered (no classpath scanning). Registration is done from your application

0 commit comments

Comments
 (0)