From 82efdc03a03393735a94423be8a121c162a88ff6 Mon Sep 17 00:00:00 2001
From: deanpretorius <52314971+deanpretorius@users.noreply.github.com>
Date: Mon, 1 Jun 2026 13:07:25 +0200
Subject: [PATCH] Update README with Zenoh library dependency instructions
Added instructions for including the Zenoh library as a Gradle and Maven dependency in the README.
---
README.md | 26 +++++++++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index f8bb048e..ee8b80e8 100644
--- a/README.md
+++ b/README.md
@@ -76,7 +76,10 @@ Zenoh is a communications protocol, therefore the permissions required are:
##
JVM
-First add the Maven central repository to your `settings.gradle.kts`:
+The Zenoh library can be added as both a Gradle dependency or a Maven dependency.
+
+### Gradle
+To import the library as a Gradle dependency, add the Maven central repository to your `settings.gradle.kts`:
```kotlin
dependencyResolutionManagement {
@@ -92,6 +95,27 @@ After that add to the dependencies in the app's `build.gradle.kts`:
```kotlin
implementation("org.eclipse.zenoh:zenoh-java-jvm:1.1.1")
```
+### Maven Dependency
+
+To add the library in a Maven project, add it as a dependency under the tag in the project's `pom.xml`:
+
+```xml
+
+
+
+
+
+ org.eclipse.zenoh
+ zenoh-java
+ 1.9.0
+
+
+
+```
+Thereafter, recompile the project with the added dependency:
+```bash
+ mvn package
+```
### Platforms