Skip to content

Commit 8aa8bcd

Browse files
authored
Merge pull request #42 from spt-development/feature/spring-boot-3.4.1-upgrade
Updated dependencies to align with Spring Boot 3.4.1
2 parents d485a2f + b194b35 commit 8aa8bcd

File tree

5 files changed

+43
-43
lines changed

5 files changed

+43
-43
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ Alternatively, and more akin to how you would run the application in production,
5858
through the use of environment variables to point at a postgres database running in Docker.
5959

6060
```shell
61-
$ SPRING_DATASOURCE_URL=jdbc:postgresql://127.0.0.1:59314/spt-recruitment-demo \
61+
$ SPRING_DATASOURCE_URL=jdbc:postgresql://127.0.0.1:5432/spt-development-demo \
6262
SPRING_DATASOURCE_USERNAME=postgres \
6363
SPRING_DATASOURCE_PASSWORD=p@ssw0rd \
64-
SPRING_ACTIVEMQ_BROKER_URL=tcp://localhost:59313 \
64+
SPRING_ACTIVEMQ_BROKER_URL=tcp://localhost:61616 \
6565
java -jar target/spt-development-demo-0.0.1-SNAPSHOT.jar
6666
```
6767

@@ -88,11 +88,15 @@ $ curl -v -u bob:password123! http://localhost:8080/api/v1.0/books/4
8888
```shell
8989
$ curl -v -u bob:password123! -X DELETE http://localhost:8080/api/v1.0/books/4
9090
```
91-
Additionally, the Actuator web endpoints have been enabled on port 8081 and can be access unauthorized. For example:
91+
Additionally, the Actuator web endpoints have been enabled on port 8081 and can be accessed unauthorized. For example:
9292

9393
```shell
9494
$ curl -v http://localhost:8081/actuator/health
9595
```
96+
or
97+
```shell
98+
$ curl -v http://localhost:8081/actuator/info
99+
```
96100

97101
Running the demo in docker
98102
==========================

config/owasp/suppress.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,18 @@
88
<packageUrl regex="true">^pkg:maven/com\.fasterxml\.jackson\.core/jackson\-databind@.*$</packageUrl>
99
<cve>CVE-2023-35116</cve>
1010
</suppress>
11+
<suppress>
12+
<notes><![CDATA[
13+
file name: logback-core-1.5.12.jar
14+
]]></notes>
15+
<packageUrl regex="true">^pkg:maven/ch\.qos\.logback/logback\-core@.*$</packageUrl>
16+
<vulnerabilityName>CVE-2024-12798</vulnerabilityName>
17+
</suppress>
18+
<suppress>
19+
<notes><![CDATA[
20+
file name: logback-core-1.5.12.jar
21+
]]></notes>
22+
<packageUrl regex="true">^pkg:maven/ch\.qos\.logback/logback\-core@.*$</packageUrl>
23+
<vulnerabilityName>CVE-2024-12801</vulnerabilityName>
24+
</suppress>
1125
</suppressions>

docker-compose.service.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
version: '3.7'
2-
31
services:
42
api:
53
image: docker.io/library/spt-development-demo:0.0.1-SNAPSHOT
64
environment:
7-
SPRING_DATASOURCE_URL: jdbc:postgresql://spt-development-demo-db-1:5432/spt-recruitment-demo
5+
SPRING_DATASOURCE_URL: jdbc:postgresql://spt-development-demo-db-1:5432/spt-development-demo
86
SPRING_DATASOURCE_USERNAME: postgres
97
SPRING_DATASOURCE_PASSWORD: p@ssw0rd
108
SPRING_ACTIVEMQ_BROKER_URL: tcp://spt-development-demo-activemq-1:61616

docker-compose.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
version: '3.7'
2-
31
services:
42
db:
53
image: postgres:17.2-alpine3.20
64
environment:
75
POSTGRES_USER: postgres
86
POSTGRES_PASSWORD: p@ssw0rd
9-
POSTGRES_DB: spt-recruitment-demo
7+
POSTGRES_DB: spt-development-demo
108
ports:
11-
- "5432"
9+
- "5432:5432"
1210

1311
activemq:
1412
image: apache/activemq-classic:6.1.2
1513
ports:
16-
- "61616"
14+
- "61616:61616"

pom.xml

Lines changed: 18 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.4.0</version>
9+
<version>3.4.1</version>
1010
<relativePath /> <!-- lookup parent from repository -->
1111
</parent>
1212

@@ -32,36 +32,36 @@
3232
<!-- Dependency versions -->
3333
<commons-collections.version>4.4</commons-collections.version>
3434
<findbugs-jsr305.version>3.0.2</findbugs-jsr305.version>
35-
<spt-development-audit-spring-boot.version>3.4.0</spt-development-audit-spring-boot.version>
36-
<spt-development-cid-jms-spring-boot.version>3.4.0</spt-development-cid-jms-spring-boot.version>
37-
<spt-development-cid-web-spring-boot.version>3.4.0</spt-development-cid-web-spring-boot.version>
38-
<spt-development-logging-spring-boot.version>3.4.0</spt-development-logging-spring-boot.version>
35+
<spt-development-audit-spring-boot.version>3.4.1</spt-development-audit-spring-boot.version>
36+
<spt-development-cid-jms-spring-boot.version>3.4.1</spt-development-cid-jms-spring-boot.version>
37+
<spt-development-cid-web-spring-boot.version>3.4.1</spt-development-cid-web-spring-boot.version>
38+
<spt-development-logging-spring-boot.version>3.4.1</spt-development-logging-spring-boot.version>
3939

4040
<!-- Test dependency versions -->
4141
<archunit.version>1.3.0</archunit.version>
4242
<awaitility.version>4.2.2</awaitility.version>
4343
<cucumber.version>7.20.1</cucumber.version>
44-
<junit-platform.version>1.11.3</junit-platform.version>
45-
<spt-development-test.version>3.1.13</spt-development-test.version>
44+
<junit-platform.version>1.11.4</junit-platform.version>
45+
<spt-development-test.version>3.1.14</spt-development-test.version>
4646
<testcontainers.version>1.20.4</testcontainers.version>
4747

4848
<!-- Plugin versions -->
4949
<checkstyle-maven-plugin.version>3.6.0</checkstyle-maven-plugin.version>
50-
<dependency-check-maven.version>11.1.0</dependency-check-maven.version>
50+
<dependency-check-maven.version>11.1.1</dependency-check-maven.version>
5151
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
52-
<license-maven-plugin.version>2.4.0</license-maven-plugin.version>
52+
<license-maven-plugin.version>2.5.0</license-maven-plugin.version>
5353
<maven-jxr-plugin.version>3.6.0</maven-jxr-plugin.version>
5454
<maven-pmd-plugin.version>3.26.0</maven-pmd-plugin.version>
5555
<maven-scm-plugin.version>2.1.0</maven-scm-plugin.version>
56-
<pitest-maven.version>1.17.1</pitest-maven.version>
56+
<pitest-maven.version>1.17.3</pitest-maven.version>
5757
<spotbugs-plugin.version>4.8.6.6</spotbugs-plugin.version>
5858

5959
<!-- Plugin dependencies -->
60-
<checkstyle.version>10.20.1</checkstyle.version>
60+
<checkstyle.version>10.21.0</checkstyle.version>
6161
<findbugs-slf4j-bug-pattern.version>1.5.0</findbugs-slf4j-bug-pattern.version>
6262
<findbugs-sec-bug-pattern.version>1.13.0</findbugs-sec-bug-pattern.version>
6363
<pitest-junit5-plugin.version>1.2.1</pitest-junit5-plugin.version>
64-
<pmd.version>7.7.0</pmd.version>
64+
<pmd.version>7.8.0</pmd.version>
6565
</properties>
6666

6767
<dependencyManagement>
@@ -466,15 +466,6 @@
466466
<artifactId>maven-failsafe-plugin</artifactId>
467467
<configuration>
468468
<!--
469-
Prevents the following warning introduced in JDK 21, caused by Mockito or more specifically byte-buddy-agent:
470-
471-
WARNING: A Java agent has been loaded dynamically (/Users/khm/.m2/repository/net/bytebuddy/byte-buddy-agent/1.14.5/byte-buddy-agent-1.14.5.jar)
472-
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
473-
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
474-
WARNING: Dynamic loading of agents will be disallowed by default in a future release
475-
476-
NOTE. argLine property is set by JaCoCo in prepare-agent stage.
477-
478469
Starting from Java 21, the JDK restricts the ability of libraries to attach a Java agent to their own JVM. As a result, the inline-mock-maker might not be
479470
able to function without an explicit setup to enable instrumentation, and the JVM will always display a warning.
480471
@@ -483,8 +474,10 @@
483474
@{argLine} -javaagent:${org.mockito:mockito-core:jar}
484475
485476
Additionally, the `properties` goal of the `maven-dependency-plugin` must be executed.
477+
478+
NOTE. argLine property is set by JaCoCo in prepare-agent stage.
486479
-->
487-
<argLine>-XX:+EnableDynamicAgentLoading @{argLine} -javaagent:${org.mockito:mockito-core:jar}</argLine>
480+
<argLine>@{argLine} -javaagent:${org.mockito:mockito-core:jar}</argLine>
488481
<!--
489482
classesDirectory is required to work around a bug that is discussed at
490483
https://github.com/spring-projects/spring-boot/issues/6254. There are a number of different
@@ -514,15 +507,6 @@
514507
<artifactId>maven-surefire-plugin</artifactId>
515508
<configuration>
516509
<!--
517-
Prevents the following warning introduced in JDK 21, caused by Mockito or more specifically byte-buddy-agent:
518-
519-
WARNING: A Java agent has been loaded dynamically (/Users/khm/.m2/repository/net/bytebuddy/byte-buddy-agent/1.14.5/byte-buddy-agent-1.14.5.jar)
520-
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
521-
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
522-
WARNING: Dynamic loading of agents will be disallowed by default in a future release
523-
524-
NOTE. argLine property is set by JaCoCo in prepare-agent stage.
525-
526510
Starting from Java 21, the JDK restricts the ability of libraries to attach a Java agent to their own JVM. As a result, the inline-mock-maker might not be
527511
able to function without an explicit setup to enable instrumentation, and the JVM will always display a warning.
528512
@@ -531,8 +515,10 @@
531515
@{argLine} -javaagent:${org.mockito:mockito-core:jar}
532516
533517
Additionally, the `properties` goal of the `maven-dependency-plugin` must be executed.
518+
519+
NOTE. argLine property is set by JaCoCo in prepare-agent stage.
534520
-->
535-
<argLine>-XX:+EnableDynamicAgentLoading @{argLine} -javaagent:${org.mockito:mockito-core:jar}</argLine>
521+
<argLine>@{argLine} -javaagent:${org.mockito:mockito-core:jar}</argLine>
536522
<trimStackTrace>false</trimStackTrace>
537523
<includes>
538524
<include>**/*Test.java</include>

0 commit comments

Comments
 (0)