aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorronshapiro <ronshapiro@google.com>2017-05-02 14:59:24 -0700
committerRon Shapiro <shapiro.rd@gmail.com>2017-05-03 15:11:38 -0400
commit7ef7121e042db3d16a347bff8cc535eb81ed676e (patch)
treed80c11f4e933daa1439c45a97b62e6c2db0f948f /README.md
parentfce0333329ce3f4b13504f5074e0867afaf221f3 (diff)
downloaddagger2-7ef7121e042db3d16a347bff8cc535eb81ed676e.tar.gz
Put modern Maven information first, and older info secondupstream/dagger-2.11-rc2
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=154884662
Diffstat (limited to 'README.md')
-rw-r--r--README.md41
1 files changed, 20 insertions, 21 deletions
diff --git a/README.md b/README.md
index 3684e1e88..96b9939e9 100644
--- a/README.md
+++ b/README.md
@@ -44,27 +44,8 @@ at compile time.
### Maven
In a Maven project, include the `dagger` artifact in the dependencies section
-of your `pom.xml` and the `dagger-compiler` artifact as either an `optional` or
-`provided` dependency:
-
-```xml
-<dependencies>
- <dependency>
- <groupId>com.google.dagger</groupId>
- <artifactId>dagger</artifactId>
- <version>2.x</version>
- </dependency>
- <dependency>
- <groupId>com.google.dagger</groupId>
- <artifactId>dagger-compiler</artifactId>
- <version>2.x</version>
- <optional>true</optional>
- </dependency>
-</dependencies>
-```
-
-or as an `annotationProcessorPaths` value of the `maven-compiler-plugin`
-(requires at least version 3.5):
+of your `pom.xml` and the `dagger-compiler` artifact as an
+`annotationProcessorPaths` value of the `maven-compiler-plugin`:
```xml
<dependencies>
@@ -94,6 +75,24 @@ or as an `annotationProcessorPaths` value of the `maven-compiler-plugin`
</build>
```
+If you are using a version of the `maven-compiler-plugin` lower than `3.5`, add
+the `dagger-compiler` artifact as with the `provided` scope:
+```xml
+<dependencies>
+ <dependency>
+ <groupId>com.google.dagger</groupId>
+ <artifactId>dagger</artifactId>
+ <version>2.x</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.dagger</groupId>
+ <artifactId>dagger-compiler</artifactId>
+ <version>2.x</version>
+ <scope>provided</scope>
+ </dependency>
+</dependencies>
+```
+
If you use the beta `dagger-producers` extension (which supplies
parallelizable execution graphs), then add this to your maven configuration: