Skip to content

Commit 6013466

Browse files
author
Ivan Franchin
committed
Project upgrade
- Upgrade to spring-boot 3.2.5; - Upgrade to springdoc-openapi 2.5.0; - Upgrade to spring-cloud 2023.0.1; - Upgrade to jib-maven-plugin 3.4.2; - Upgrade to apache-maven 3.9.5; - Upgrade to amazoncorretto-jdk 17.0.10; - Upgrade to jquery 3.7.1; - Upgrade to moment.js 2.30.1; - Upgrade to mysql docker image 8.3.0; - Upgrade to confluentinc docker images 7.5.3; - Upgrade to kafdrop docker image 4.0.1; - Remove obsolete version field in docker-compose.yml; - Update README.
1 parent 2a9faca commit 6013466

File tree

7 files changed

+25
-28
lines changed

7 files changed

+25
-28
lines changed

.mvn/wrapper/maven-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip
1+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip
22
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar

README.adoc

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ image::./documentation/project-diagram.jpeg[]
3636

3737
== Start Environment
3838

39-
* Open a terminal and inside `springboot-kafka-websocket` root folder run
39+
* Open a terminal and inside `springboot-kafka-websocket` root folder run:
4040
+
4141
[source]
4242
----
4343
docker compose up -d
4444
----
4545

46-
* Wait for Docker containers to be up and running. To check it, run
46+
* Wait for Docker containers to be up and running. To check it, run:
4747
+
4848
[source]
4949
----
@@ -52,7 +52,7 @@ docker compose ps
5252

5353
== Running applications with Maven
5454

55-
Inside `springboot-kafka-websocket` root folder, run the following `Maven` commands in different terminals
55+
Inside `springboot-kafka-websocket` root folder, run the following `Maven` commands in different terminals:
5656

5757
* *bitcoin-api*
5858
+
@@ -72,9 +72,9 @@ Inside `springboot-kafka-websocket` root folder, run the following `Maven` comma
7272

7373
=== Build Application's Docker Image
7474

75-
* In a terminal, make sure you are in `springboot-kafka-websocket` root folder
75+
* In a terminal, make sure you are in `springboot-kafka-websocket` root folder;
7676

77-
* In order to build the application docker images, run the following script
77+
* In order to build the application docker images, run the following script:
7878
+
7979
[source]
8080
----
@@ -115,9 +115,9 @@ Inside `springboot-kafka-websocket` root folder, run the following `Maven` comma
115115

116116
== Run Application's Docker container
117117

118-
* In a terminal, make sure you are inside `springboot-kafka-websocket` root folder
118+
* In a terminal, make sure you are inside `springboot-kafka-websocket` root folder;
119119

120-
* Run following script
120+
* Run following script:
121121
+
122122
[source]
123123
----
@@ -138,8 +138,7 @@ Inside `springboot-kafka-websocket` root folder, run the following `Maven` comma
138138
|`user1/123` or `user2/123`
139139
|===
140140

141-
The gif below shows two users checking real-time the `BTC` price changes. Besides, they are using a chat channel to
142-
communicate with each other.
141+
The gif below shows two users checking real-time the `BTC` price changes. Besides, they are using a chat channel to communicate with each other.
143142

144143
image::./documentation/two-users-example.gif[]
145144

@@ -160,14 +159,14 @@ select * from prices;
160159
== Shutdown
161160

162161
* To stop applications
163-
** If they were started with `Maven`, go to the terminals where they are running and press `Ctrl+C`
164-
** If they were started as Docker containers, go to a terminal and, inside `springboot-kafka-websocket` root folder, run the script below
162+
** If they were started with `Maven`, go to the terminals where they are running and press `Ctrl+C`;
163+
** If they were started as Docker containers, go to a terminal and, inside `springboot-kafka-websocket` root folder, run the script below:
165164
+
166165
[source]
167166
----
168167
./stop-apps.sh
169168
----
170-
* To stop and remove docker compose containers, network and volumes, go to a terminal and, inside `springboot-kafka-websocket` root folder, run the following command
169+
* To stop and remove docker compose containers, network and volumes, go to a terminal and, inside `springboot-kafka-websocket` root folder, run the following command:
171170
+
172171
[source]
173172
----
@@ -176,7 +175,7 @@ docker compose down -v
176175

177176
== Cleanup
178177

179-
To remove the Docker images created by this project, go to a terminal and, inside `springboot-kafka-websocket` root folder, run the script below
178+
To remove the Docker images created by this project, go to a terminal and, inside `springboot-kafka-websocket` root folder, run the script below:
180179
[source]
181180
----
182181
./remove-docker-images.sh

bitcoin-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<description>Demo project for Spring Boot</description>
1515

1616
<properties>
17-
<springdoc-openapi.version>2.2.0</springdoc-openapi.version>
17+
<springdoc-openapi.version>2.5.0</springdoc-openapi.version>
1818
</properties>
1919

2020
<dependencies>

bitcoin-client/src/main/resources/templates/fragments/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<body>
44
<footer class="page-footer grey lighten-1" th:fragment="footer">
55
<div class="footer-copyright grey darken-3">
6-
<div class="align-center container center-align">© 2023 Copyright</div>
6+
<div class="align-center container center-align">© 2024 Copyright</div>
77
</div>
88
</footer>
99
</body>

bitcoin-client/src/main/resources/templates/prices.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ <h5 class="center-align orange lighten-4">Chat</h5>
9797
<div th:insert="~{fragments/footer :: footer}"></div>
9898

9999
<!--JavaScript at end of body for optimized loading-->
100-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
100+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
101101
<script src="https://cdnjs.cloudflare.com/ajax/libs/sockjs-client/1.6.1/sockjs.min.js"></script>
102102
<script src="https://cdnjs.cloudflare.com/ajax/libs/stomp.js/2.3.3/stomp.min.js"></script>
103-
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment.min.js"></script>
103+
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.30.1/moment.min.js"></script>
104104
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
105105
<script src="/app.js"></script>
106106

docker-compose.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
version: "3.8"
2-
31
services:
42

53
mysql:
6-
image: mysql:8.1.0
4+
image: mysql:8.3.0
75
container_name: mysql
86
restart: unless-stopped
97
ports:
@@ -15,7 +13,7 @@ services:
1513
test: "mysqladmin ping -u root -p$${MYSQL_ROOT_PASSWORD}"
1614

1715
zookeeper:
18-
image: confluentinc/cp-zookeeper:7.4.1
16+
image: confluentinc/cp-zookeeper:7.5.3
1917
container_name: zookeeper
2018
restart: unless-stopped
2119
ports:
@@ -26,7 +24,7 @@ services:
2624
test: "echo stat | nc localhost $$ZOOKEEPER_CLIENT_PORT"
2725

2826
kafka:
29-
image: confluentinc/cp-kafka:7.4.1
27+
image: confluentinc/cp-kafka:7.5.3
3028
container_name: kafka
3129
restart: unless-stopped
3230
depends_on:
@@ -42,7 +40,7 @@ services:
4240
test: [ "CMD", "nc", "-z", "localhost", "9092" ]
4341

4442
kafdrop:
45-
image: obsidiandynamics/kafdrop:3.31.0
43+
image: obsidiandynamics/kafdrop:4.0.1
4644
container_name: kafdrop
4745
restart: unless-stopped
4846
depends_on:

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.1.3</version>
8+
<version>3.2.5</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111

@@ -18,9 +18,9 @@
1818

1919
<properties>
2020
<java.version>17</java.version>
21-
<spring-cloud.version>2022.0.4</spring-cloud.version>
22-
<jib-maven-plugin.version>3.3.2</jib-maven-plugin.version>
23-
<jdk-image.version>17.0.8</jdk-image.version>
21+
<spring-cloud.version>2023.0.1</spring-cloud.version>
22+
<jib-maven-plugin.version>3.4.2</jib-maven-plugin.version>
23+
<jdk-image.version>17.0.10</jdk-image.version>
2424
<docker-image.prefix>ivanfranchin</docker-image.prefix>
2525
</properties>
2626

0 commit comments

Comments
 (0)