Skip to content

Commit d6b0632

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

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

CONTRIBUTING.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,26 @@ 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

5353
```bash
5454
./gradlew publishToMavenLocal
5555
```
56-
To use the locally published library in your project, you can add the following dependency in your `build.gradle` file:
56+
57+
Alternatively, to publish only the specific (LiveObjects) module:
58+
```bash
59+
./gradlew :live-objects:publishToMavenLocal
60+
```
61+
62+
- To use the locally published library in your project, you can add the following dependency in your `build.gradle` file:
5763

5864
```groovy
5965
repositories {
6066
mavenLocal()
6167
}
6268
```
69+
- Note - Place `mavenLocal()` before `mavenCentral()` for resolution precedence.
6370

6471
### How to Add a New Network Engine
6572

0 commit comments

Comments
 (0)