Skip to content

Commit 5bdaa0d

Browse files
madmedcketcham
authored andcommitted
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
1 parent 2cf1040 commit 5bdaa0d

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

docs/getting-started.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,25 @@ path: /docs/getting-started/
1212
Material Components for Android is available through Google's Maven repository.
1313
To use it:
1414

15-
1. Open the `build.gradle` file for your application.
16-
2. Make sure that the `repositories` section includes a maven section with the
17-
`"https://maven.google.com"` endpoint. For example:
15+
1. Open the `build.gradle` file for your application.
16+
2. Make sure that the `repositories` section includes a maven section with the
17+
`"https://maven.google.com"` endpoint. For example:
1818

1919
```groovy
2020
allprojects {
2121
repositories {
22+
google()
2223
jcenter()
23-
maven {
24-
url "https://maven.google.com"
25-
}
2624
}
2725
}
2826
```
29-
3. Add the library to the `dependencies` section:
27+
28+
3. Add the library to the `dependencies` section:
3029
3130
```groovy
3231
dependencies {
3332
// ...
34-
compile 'com.google.android.material:material:1.0.0-alpha3'
33+
implementation 'com.google.android.material:material:1.0.0-beta01'
3534
// ...
3635
}
3736
```

0 commit comments

Comments
 (0)