diff options
author | Eric Chang <erichang@google.com> | 2021-01-11 13:58:15 -0800 |
---|---|---|
committer | Dagger Team <dagger-dev+copybara@google.com> | 2021-01-11 14:00:06 -0800 |
commit | 9465a0e5233469c28f3cfc9a96b67418ead2fde8 (patch) | |
tree | 9f896d0a707d6a8c855c8812e2558b07f2ba9635 /README.md | |
parent | d8284724abf82dfa13f3d505251eacc83ebb52bf (diff) | |
download | dagger2-9465a0e5233469c28f3cfc9a96b67418ead2fde8.tar.gz |
Switch api to implementation in README.
RELNOTES=n/a
PiperOrigin-RevId: 351229686
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -252,7 +252,7 @@ parallelizable execution graphs), then add this to your maven configuration: ```groovy // Add Dagger dependencies dependencies { - api 'com.google.dagger:dagger:2.x' + implementation 'com.google.dagger:dagger:2.x' annotationProcessor 'com.google.dagger:dagger-compiler:2.x' } ``` @@ -260,15 +260,14 @@ dependencies { If you're using classes in `dagger.android` you'll also want to include: ```groovy -api 'com.google.dagger:dagger-android:2.x' -api 'com.google.dagger:dagger-android-support:2.x' // if you use the support libraries +implementation 'com.google.dagger:dagger-android:2.x' +implementation 'com.google.dagger:dagger-android-support:2.x' // if you use the support libraries annotationProcessor 'com.google.dagger:dagger-android-processor:2.x' ``` Notes: -- Some projects will want to use `implementation` instead of `api` for better - compilation performance. +- We use `implementation` instead of `api` for better compilation performance. - See the [Gradle documentation][gradle-api-implementation] for more information on how to select appropriately, and the [Android Gradle plugin documentation][gradle-api-implementation-android] for Android |