Update "Getting Started"

- "compile" has been deprecated. Changed it to "implementation"
- No longer need to use maven in repositories. Updated to google()

GIT_ORIGIN_REV_ID=322cfc89767649d726eb865d5416cdbdec3772aa
PiperOrigin-RevId: 204989838
This commit is contained in:
Mehmet Emre Aydinli 2018-07-17 18:53:20 -04:00 committed by cketcham
parent 2cf1040ca8
commit 5bdaa0de05

View File

@ -12,26 +12,25 @@ path: /docs/getting-started/
Material Components for Android is available through Google's Maven repository.
To use it:
1. Open the `build.gradle` file for your application.
2. Make sure that the `repositories` section includes a maven section with the
`"https://maven.google.com"` endpoint. For example:
1. Open the `build.gradle` file for your application.
2. Make sure that the `repositories` section includes a maven section with the
`"https://maven.google.com"` endpoint. For example:
```groovy
allprojects {
repositories {
google()
jcenter()
maven {
url "https://maven.google.com"
}
}
}
```
3. Add the library to the `dependencies` section:
3. Add the library to the `dependencies` section:
```groovy
dependencies {
// ...
compile 'com.google.android.material:material:1.0.0-alpha3'
implementation 'com.google.android.material:material:1.0.0-beta01'
// ...
}
```