diff --git a/plug-ins/index.html b/plug-ins/index.html index 9ec04e0..f23a48e 100644 --- a/plug-ins/index.html +++ b/plug-ins/index.html @@ -131,6 +131,29 @@ application {
+ The apt
plug-in adds support for annotation processing. It's made of two parts.
+
apt
dependency directive+ dependencies { + apt("com.google.dagger:dagger:2.0.2") + } ++
+ Instead of using compile
, you use apt
in your dependencies and you point to the jar file that contains the annotation processor. This will instruct any compiler involved in the build to run this annotation processor first.
+
apt
configuration directive+ apt { + outputDir = "generated/sources/apt" + } ++
This directive lets you configure the output directory and a few other settings that drive the annotation processor. This directive is optional.
+For a full example defining and then using an annotation processor, see the java-apt-example project.
+ +