diff --git a/README.md b/README.md index a83adde5e..9b0c2d1e8 100644 --- a/README.md +++ b/README.md @@ -41,39 +41,26 @@ __Remember: A butter knife is like [a dagger][1] only infinitely less sharp.__ Download -------- -Configure your project-level `build.gradle` to include the 'android-apt' plugin: +Configure your project-level `build.gradle` to use at least vesion 2.2.0 of the Android Gradle Plugin: ```groovy buildscript { - repositories { - mavenCentral() - } + ... dependencies { - classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' + classpath 'com.android.tools.build:gradle:2.2.0' } } ``` -Then, apply the 'android-apt' plugin in your module-level `build.gradle` and add the Butter Knife -dependencies: +Then add the Butter Knife dependencies to your module-level `build.gradle`: ```groovy -apply plugin: 'android-apt' - -android { - ... -} - dependencies { compile 'com.jakewharton:butterknife:8.4.0' - apt 'com.jakewharton:butterknife-compiler:8.4.0' + annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0' } ``` -Note: If you are using the new Jack compiler with version 2.2.0 or newer you do not need the -'android-apt' plugin and can instead replace `apt` with `annotationProcessor` when declaring the -compiler dependency. - Snapshots of the development version are available in [Sonatype's `snapshots` repository][snap]. diff --git a/website/index.html b/website/index.html index f420d0789..982bec62e 100644 --- a/website/index.html +++ b/website/index.html @@ -211,10 +211,25 @@

Bonus

Add a static import for ButterKnife.findById and enjoy even more fun.

Download

-

Gradle

-
compile 'com.jakewharton:butterknife:(insert latest version)'
-apt 'com.jakewharton:butterknife-compiler:(insert latest version)'
+ Configure your project-level build.gradle to use at least version 2.2.0 of the Android Gradle Plugin: +

Project-level build.gradle

+
+buildscript {
+  ...
+  dependencies {
+    classpath 'com.android.tools.build:gradle:2.2.0'
+  }
+}
+            
+ Then add the Butter Knife dependencies to the module-level build.gradle: +

Module-level build.gradle

+
+dependencies {
+  compile 'com.jakewharton:butterknife:(latest version)'
+  annotationProcessor 'com.jakewharton:butterknife-compiler:(latest version)'
+}
+            

License

Copyright 2013 Jake Wharton
 
@@ -235,7 +250,7 @@ 

License

- +