Skip to content

Commit 5dcf308

Browse files
committed
Upgrade to Java 25
1 parent d224087 commit 5dcf308

4 files changed

Lines changed: 47 additions & 36 deletions

File tree

adapter/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333

3434
<!-- Test scope -->
3535
<dependency>
36-
<groupId>mysql</groupId>
37-
<artifactId>mysql-connector-java</artifactId>
36+
<groupId>com.mysql</groupId>
37+
<artifactId>mysql-connector-j</artifactId>
3838
<scope>test</scope>
3939
</dependency>
4040
<dependency>

bootstrap/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747

4848
<!-- Runtime -->
4949
<dependency>
50-
<groupId>mysql</groupId>
51-
<artifactId>mysql-connector-java</artifactId>
50+
<groupId>com.mysql</groupId>
51+
<artifactId>mysql-connector-j</artifactId>
5252
<scope>runtime</scope>
5353
</dependency>
5454
<dependency>

bootstrap/src/main/java/eu/happycoders/shop/bootstrap/RestEasyUndertowShopApplication.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ private void initPersistenceAdapters() {
5151
switch (persistence) {
5252
case "inmemory" -> initInMemoryAdapters();
5353
case "mysql" -> initMySqlAdapters();
54-
default -> throw new IllegalArgumentException(
55-
"Invalid 'persistence' property: '%s' (allowed: 'inmemory', 'mysql')"
56-
.formatted(persistence));
54+
default ->
55+
throw new IllegalArgumentException(
56+
"Invalid 'persistence' property: '%s' (allowed: 'inmemory', 'mysql')"
57+
.formatted(persistence));
5758
}
5859
}
5960

pom.xml

Lines changed: 39 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@
1818
</modules>
1919

2020
<properties>
21-
<maven.compiler.source>20</maven.compiler.source>
22-
<maven.compiler.target>20</maven.compiler.target>
21+
<maven.compiler.source>25</maven.compiler.source>
22+
<maven.compiler.target>25</maven.compiler.target>
2323
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2424

25-
<pmd.version>6.55.0</pmd.version>
25+
<pmd.version>7.25.0</pmd.version>
26+
<lombok.version>1.18.46</lombok.version>
2627

2728
<!-- SonarCloud configuration -->
2829
<sonar.projectKey>SvenWoltmann_hexagonal-architecture-java</sonar.projectKey>
@@ -41,27 +42,27 @@
4142
<dependency>
4243
<groupId>org.projectlombok</groupId>
4344
<artifactId>lombok</artifactId>
44-
<version>1.18.30</version>
45+
<version>${lombok.version}</version>
4546
<scope>provided</scope>
4647
</dependency>
4748

4849
<!-- Test scope (shared by all modules) -->
4950
<dependency>
5051
<groupId>org.junit.jupiter</groupId>
5152
<artifactId>junit-jupiter</artifactId>
52-
<version>5.10.0</version>
53+
<version>6.1.0</version>
5354
<scope>test</scope>
5455
</dependency>
5556
<dependency>
5657
<groupId>org.assertj</groupId>
5758
<artifactId>assertj-core</artifactId>
58-
<version>3.24.2</version>
59+
<version>3.27.7</version>
5960
<scope>test</scope>
6061
</dependency>
6162
<dependency>
6263
<groupId>org.mockito</groupId>
6364
<artifactId>mockito-core</artifactId>
64-
<version>5.5.0</version>
65+
<version>5.23.0</version>
6566
<scope>test</scope>
6667
</dependency>
6768
</dependencies>
@@ -71,27 +72,27 @@
7172
<dependency>
7273
<groupId>com.tngtech.archunit</groupId>
7374
<artifactId>archunit-junit5</artifactId>
74-
<version>1.1.0</version>
75+
<version>1.4.2</version>
7576
</dependency>
7677
<dependency>
77-
<groupId>mysql</groupId>
78-
<artifactId>mysql-connector-java</artifactId>
79-
<version>8.0.33</version>
78+
<groupId>com.mysql</groupId>
79+
<artifactId>mysql-connector-j</artifactId>
80+
<version>9.7.0</version>
8081
</dependency>
8182
<dependency>
8283
<groupId>io.rest-assured</groupId>
8384
<artifactId>rest-assured</artifactId>
84-
<version>5.3.2</version>
85+
<version>6.0.0</version>
8586
</dependency>
8687
<dependency>
8788
<groupId>jakarta.persistence</groupId>
8889
<artifactId>jakarta.persistence-api</artifactId>
89-
<version>3.1.0</version>
90+
<version>3.2.0</version>
9091
</dependency>
9192
<dependency>
9293
<groupId>jakarta.ws.rs</groupId>
9394
<artifactId>jakarta.ws.rs-api</artifactId>
94-
<version>3.1.0</version>
95+
<version>4.0.0</version>
9596
</dependency>
9697
<dependency>
9798
<groupId>org.glassfish</groupId>
@@ -101,27 +102,27 @@
101102
<dependency>
102103
<groupId>org.hibernate.orm</groupId>
103104
<artifactId>hibernate-core</artifactId>
104-
<version>6.3.1.Final</version>
105+
<version>7.4.1.Final</version>
105106
</dependency>
106107
<dependency>
107108
<groupId>org.hibernate.validator</groupId>
108109
<artifactId>hibernate-validator</artifactId>
109-
<version>8.0.1.Final</version>
110+
<version>9.1.0.Final</version>
110111
</dependency>
111112
<dependency>
112113
<groupId>org.jboss.resteasy</groupId>
113114
<artifactId>resteasy-undertow</artifactId>
114-
<version>6.2.5.Final</version>
115+
<version>7.0.2.Final</version>
115116
</dependency>
116117
<dependency>
117118
<groupId>org.jboss.resteasy</groupId>
118119
<artifactId>resteasy-jackson2-provider</artifactId>
119-
<version>6.2.5.Final</version>
120+
<version>7.0.2.Final</version>
120121
</dependency>
121122
<dependency>
122123
<groupId>org.testcontainers</groupId>
123124
<artifactId>mysql</artifactId>
124-
<version>1.19.0</version>
125+
<version>1.21.4</version>
125126
</dependency>
126127
</dependencies>
127128
</dependencyManagement>
@@ -133,22 +134,31 @@
133134
<plugin>
134135
<groupId>org.apache.maven.plugins</groupId>
135136
<artifactId>maven-compiler-plugin</artifactId>
136-
<version>3.11.0</version>
137+
<version>3.15.0</version>
138+
<configuration>
139+
<annotationProcessorPaths>
140+
<path>
141+
<groupId>org.projectlombok</groupId>
142+
<artifactId>lombok</artifactId>
143+
<version>${lombok.version}</version>
144+
</path>
145+
</annotationProcessorPaths>
146+
</configuration>
137147
</plugin>
138148
<plugin>
139149
<groupId>org.apache.maven.plugins</groupId>
140150
<artifactId>maven-surefire-plugin</artifactId>
141-
<version>3.1.0</version>
151+
<version>3.5.6</version>
142152
</plugin>
143153
<plugin>
144154
<groupId>com.diffplug.spotless</groupId>
145155
<artifactId>spotless-maven-plugin</artifactId>
146-
<version>2.36.0</version>
156+
<version>3.6.0</version>
147157
<configuration>
148158
<java>
149159
<googleJavaFormat>
150160
<!-- Latest version can be found here: https://github.com/google/google-java-format/releases -->
151-
<version>1.17.0</version>
161+
<version>1.35.0</version>
152162
<style>GOOGLE</style>
153163
</googleJavaFormat>
154164
<lineEndings>UNIX</lineEndings>
@@ -170,7 +180,7 @@
170180
<plugin>
171181
<groupId>org.apache.maven.plugins</groupId>
172182
<artifactId>maven-jar-plugin</artifactId>
173-
<version>3.3.0</version>
183+
<version>3.5.0</version>
174184
</plugin>
175185
</plugins>
176186
</pluginManagement>
@@ -186,7 +196,7 @@
186196
<plugin>
187197
<groupId>org.jacoco</groupId>
188198
<artifactId>jacoco-maven-plugin</artifactId>
189-
<version>0.8.10</version>
199+
<version>0.8.15</version>
190200
<executions>
191201
<execution>
192202
<id>prepare-agent</id>
@@ -211,7 +221,7 @@
211221
<plugin>
212222
<groupId>com.github.spotbugs</groupId>
213223
<artifactId>spotbugs-maven-plugin</artifactId>
214-
<version>4.7.3.4</version>
224+
<version>4.10.2.0</version>
215225
<configuration>
216226
<excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
217227
</configuration>
@@ -229,7 +239,7 @@
229239
<plugin>
230240
<groupId>org.apache.maven.plugins</groupId>
231241
<artifactId>maven-pmd-plugin</artifactId>
232-
<version>3.21.0</version>
242+
<version>3.28.0</version>
233243
<configuration>
234244
<targetJdk>19</targetJdk>
235245
<rulesets>
@@ -262,15 +272,15 @@
262272
<plugin>
263273
<groupId>org.apache.maven.plugins</groupId>
264274
<artifactId>maven-checkstyle-plugin</artifactId>
265-
<version>3.3.0</version>
275+
<version>3.6.0</version>
266276
<configuration>
267277
<configLocation>./google_checks.xml</configLocation>
268278
</configuration>
269279
<dependencies>
270280
<dependency>
271281
<groupId>com.puppycrawl.tools</groupId>
272282
<artifactId>checkstyle</artifactId>
273-
<version>10.12.0</version>
283+
<version>13.5.0</version>
274284
</dependency>
275285
</dependencies>
276286
<executions>

0 commit comments

Comments
 (0)