Dustin Lam | 35b7b7c | 2020-04-05 16:29:33 -0700 | [diff] [blame] | 1 | # AndroidX Gradle Plugin |
| 2 | |
| 3 | The AndroidX Gradle plugin is a repackaged version of the existing Gradle plugin in the `buildSrc` directory. |
| 4 | |
| 5 | This project helps decouple AndroidX project builds from having to use `buildSrc` and they can use the maven coordinates |
| 6 | `androidx.build:gradle-plugin:<version>` instead. |
| 7 | |
| 8 | ```groovy |
| 9 | // in settings.gradle |
| 10 | includeBuild("../androidx-plugin") |
| 11 | |
| 12 | // in build.gradle |
| 13 | dependencies { |
| 14 | //.. other dependencies |
| 15 | classpath 'androidx.build:gradle-plugin:0.1.0' |
| 16 | } |
| 17 | ``` |
| 18 | |