Skip to content

Commit bcc276a

Browse files
committed
document the examples in readme
1 parent a4f2aa6 commit bcc276a

2 files changed

Lines changed: 5 additions & 158 deletions

File tree

RELEASE.md

Lines changed: 0 additions & 155 deletions
This file was deleted.

examples/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,23 @@ cd docker
2525
docker compose up -d
2626
```
2727

28-
Build the client jars:
28+
Build the client jars and fetch all runtime dependencies:
2929

3030
```bash
3131
# From the repo root
3232
mvn -DskipTests package
33+
mvn -pl danube-client dependency:copy-dependencies -DoutputDirectory=target/dependency -DincludeScope=runtime -q
3334
```
3435

3536
## Running an Example
3637

37-
Set up the classpath with both the client and its proto dependency:
38+
Build the full classpath (all transitive deps + client jars):
3839

3940
```bash
40-
CP=danube-client/target/danube-client-0.2.0.jar:danube-client-proto/target/danube-client-proto-0.2.0.jar
41+
CP=$(find danube-client/target/dependency -name "*.jar" | tr '\n' ':')$(find danube-client/target danube-client-proto/target -maxdepth 1 -name "*.jar" ! -name "*-sources.jar" ! -name "*-javadoc.jar" | tr '\n' ':')
4142

4243
# Compile
44+
mkdir -p examples/out
4345
javac -cp "$CP" examples/SimpleProducerConsumer.java -d examples/out
4446

4547
# Run

0 commit comments

Comments
 (0)