Skip to content

Commit ce9762b

Browse files
committed
Bump Java dependencies
1 parent d3e4e39 commit ce9762b

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

java-mvn/pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,39 +20,39 @@
2020
<dependency>
2121
<groupId>com.rabbitmq</groupId>
2222
<artifactId>amqp-client</artifactId>
23-
<version>5.7.1</version>
23+
<version>5.16.0</version>
2424
</dependency>
2525
<dependency>
2626
<groupId>org.slf4j</groupId>
2727
<artifactId>slf4j-simple</artifactId>
28-
<version>1.7.26</version>
28+
<version>1.7.36</version>
2929
</dependency>
3030

3131
<dependency>
3232
<groupId>org.junit.jupiter</groupId>
3333
<artifactId>junit-jupiter</artifactId>
34-
<version>5.5.1</version>
34+
<version>5.9.2</version>
3535
<scope>test</scope>
3636
</dependency>
3737

3838
<dependency>
3939
<groupId>io.dropwizard.metrics</groupId>
4040
<artifactId>metrics-core</artifactId>
41-
<version>4.1.0</version>
41+
<version>4.2.15</version>
4242
<scope>test</scope>
4343
</dependency>
4444

4545
<dependency>
4646
<groupId>org.assertj</groupId>
4747
<artifactId>assertj-core</artifactId>
48-
<version>3.13.2</version>
48+
<version>3.24.2</version>
4949
<scope>test</scope>
5050
</dependency>
5151

5252
<dependency>
5353
<groupId>org.mockito</groupId>
5454
<artifactId>mockito-core</artifactId>
55-
<version>3.0.0</version>
55+
<version>4.11.0</version>
5656
<scope>test</scope>
5757
</dependency>
5858

@@ -62,7 +62,7 @@
6262
<plugins>
6363
<plugin>
6464
<artifactId>maven-compiler-plugin</artifactId>
65-
<version>3.8.1</version>
65+
<version>3.10.1</version>
6666
</plugin>
6767
<plugin>
6868
<artifactId>maven-surefire-plugin</artifactId>

java/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ To successfully use the examples you will need a RabbitMQ node running locally.
1010
You'll need to download the following JAR files
1111
from Maven Central:
1212

13-
* [RabbitMQ Java Client](https://repo1.maven.org/maven2/com/rabbitmq/amqp-client/5.6.0/amqp-client-5.6.0.jar)
14-
* [SLF4J API](https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar)
15-
* [SLF4J Simple](https://repo1.maven.org/maven2/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar)
13+
* [RabbitMQ Java Client](https://repo1.maven.org/maven2/com/rabbitmq/amqp-client/5.16.0/amqp-client-5.16.0.jar)
14+
* [SLF4J API](https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar)
15+
* [SLF4J Simple](https://repo1.maven.org/maven2/org/slf4j/slf4j-simple/1.7.36/slf4j-simple-1.7.36.jar)
1616

1717
For example, with `wget`:
1818

1919
``` shell
20-
wget https://repo1.maven.org/maven2/com/rabbitmq/amqp-client/5.6.0/amqp-client-5.6.0.jar
21-
wget https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar
22-
wget https://repo1.maven.org/maven2/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar
20+
wget https://repo1.maven.org/maven2/com/rabbitmq/amqp-client/5.16.0/amqp-client-5.16.0.jar
21+
wget https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar
22+
wget https://repo1.maven.org/maven2/org/slf4j/slf4j-simple/1.7.36/slf4j-simple-1.7.36.jar
2323
```
2424

2525
Copy those files in your working directory, along the tutorials Java files.
@@ -30,14 +30,14 @@ To run them you'll need all the dependencies, see examples below.
3030
You can set an environment variable for the jar files on the classpath e.g.
3131

3232
```
33-
export CP=.:amqp-client-5.6.0.jar:slf4j-api-1.7.25.jar:slf4j-simple-1.7.25.jar
33+
export CP=.:amqp-client-5.16.0.jar:slf4j-api-1.7.36.jar:slf4j-simple-1.7.36.jar
3434
java -cp $CP Send
3535
```
3636

3737
On Windows, use a semicolon instead of a colon to separate items in the classpath:
3838

3939
```
40-
set CP=.;amqp-client-5.6.0.jar;slf4j-api-1.7.25.jar;slf4j-simple-1.7.25.jar
40+
set CP=.;amqp-client-5.16.0.jar;slf4j-api-1.7.36.jar;slf4j-simple-1.7.36.jar
4141
java -cp %CP% Send
4242
```
4343

@@ -46,19 +46,19 @@ java -cp %CP% Send
4646
#### [Tutorial one: "Hello World!"](https://www.rabbitmq.com/tutorials/tutorial-one-java.html):
4747

4848
```
49-
javac -cp amqp-client-5.6.0.jar Send.java Recv.java
49+
javac -cp amqp-client-5.16.0.jar Send.java Recv.java
5050
5151
# terminal tab 1
52-
java -cp .:amqp-client-5.6.0.jar:slf4j-api-1.7.25.jar:slf4j-simple-1.7.25.jar Recv
52+
java -cp .:amqp-client-5.16.0.jar:slf4j-api-1.7.36.jar:slf4j-simple-1.7.36.jar Recv
5353
5454
# terminal tab 2
55-
java -cp .:amqp-client-5.6.0.jar:slf4j-api-1.7.25.jar:slf4j-simple-1.7.25.jar Send
55+
java -cp .:amqp-client-5.16.0.jar:slf4j-api-1.7.36.jar:slf4j-simple-1.7.36.jar Send
5656
```
5757

5858
#### [Tutorial two: Work Queues](https://www.rabbitmq.com/tutorials/tutorial-two-java.html):
5959

6060
```
61-
javac -cp amqp-client-5.6.0.jar NewTask.java Worker.java
61+
javac -cp amqp-client-5.16.0.jar NewTask.java Worker.java
6262
6363
# terminal tab 1
6464
java -cp $CP NewTask
@@ -70,7 +70,7 @@ java -cp $CP Worker
7070
#### [Tutorial three: Publish/Subscribe](https://www.rabbitmq.com/tutorials/tutorial-three-java.html)
7171

7272
``` shell
73-
javac -cp amqp-client-5.6.0.jar EmitLog.java ReceiveLogs.java
73+
javac -cp amqp-client-5.16.0.jar EmitLog.java ReceiveLogs.java
7474

7575
# terminal tab 1
7676
java -cp $CP ReceiveLogs

0 commit comments

Comments
 (0)