Skip to content

Commit c75fb05

Browse files
committed
[ECO-5383] Updated contributing guide for publishing specific module with precedence
1 parent a2ef7b9 commit c75fb05

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

CONTRIBUTING.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,25 @@ implementation("io.ably:ably-java:$ABLY_VERSION") {
4747
runtimeOnly("io.ably:network-client-okhttp:$ABLY_VERSION")
4848
```
4949

50-
### Publishing to local Maven repository for Development and Testing
50+
### Publishing to local Maven repository for development and testing
5151
To publish the library to your local Maven repository, you can use the following command:
5252

53-
```bash
54-
./gradlew publishToMavenLocal
55-
```
56-
To use the locally published library in your project, you can add the following dependency in your `build.gradle` file:
53+
./gradlew publishToMavenLocal
5754

58-
```groovy
55+
56+
Alternatively, to publish only the specific (LiveObjects) module:
57+
58+
./gradlew :live-objects:publishToMavenLocal
59+
60+
61+
- To use the locally published library in your project, you can add the following dependency in your `build.gradle` file:
62+
63+
```
5964
repositories {
6065
mavenLocal()
6166
}
6267
```
68+
- Note - Place `mavenLocal()` before `mavenCentral()` for resolution precedence.
6369

6470
### How to Add a New Network Engine
6571

0 commit comments

Comments
 (0)