Unverified Commit 5d49f3ec authored by Jonathan Almeida's avatar Jonathan Almeida
Browse files

Closes #6288: Update docs for local development

parent febac9aa
......@@ -28,7 +28,7 @@ In the *android-components* repository update the version number [in the configu
After changing the components code you can publish your version to your local maven repository. You can either publish all components or just a specific ones:
```Bash
```bash
# Publish all components to your local Maven repository:
$ ./gradlew publishToMavenLocal
......@@ -40,7 +40,7 @@ $ ./gradlew ui-autocomplete:publishToMavenLocal
In your app project locate the `repositories` block inside your build.gradle and add `mavenLocal()` to the list:
```Groovy
```groovy
repositories {
mavenLocal()
google()
......@@ -48,6 +48,16 @@ repositories {
}
```
Also add `mavenLocal()` to the build.gradle in the 'app' module:
```groovy
buildscript {
repositories {
mavenLocal()
}
}
```
*Note*: There may be two `repositories` blocks in your root build.gradle. One for `buildscript` and one for `allprojects`. Make sure to add it to the `allprojects` block or to a build.gradle file inside a specific gradle module.
After that update the version number of your component dependency in your app's build files. Gradle will now resolve the dependency from your local maven repository and you can test your changes inside the app.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment