Skip to content

Commit b40b32a

Browse files
committed
Update dependencies and remove some insignificant dependency conflicts
Fixed inline mocking for Java 21+
1 parent f832af5 commit b40b32a

1 file changed

Lines changed: 30 additions & 24 deletions

File tree

pom.xml

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,21 @@
2222
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2323
<inceptionYear>2023</inceptionYear>
2424

25-
<junit.version>5.10.1</junit.version>
25+
<junit.version>5.11.3</junit.version>
26+
<mockito.version>5.14.2</mockito.version>
2627
</properties>
2728

2829
<dependencies>
2930
<dependency>
3031
<groupId>info.picocli</groupId>
3132
<artifactId>picocli</artifactId>
32-
<version>4.7.5</version>
33+
<version>4.7.6</version>
3334
</dependency>
3435

3536
<dependency>
3637
<groupId>com.fasterxml.jackson.core</groupId>
3738
<artifactId>jackson-databind</artifactId>
38-
<version>2.16.1</version>
39+
<version>2.18.1</version>
3940
</dependency>
4041

4142
<dependency>
@@ -47,19 +48,25 @@
4748
<dependency>
4849
<groupId>org.apache.commons</groupId>
4950
<artifactId>commons-lang3</artifactId>
50-
<version>3.14.0</version>
51+
<version>3.17.0</version>
5152
</dependency>
5253

5354
<dependency>
5455
<groupId>com.squareup.okhttp3</groupId>
5556
<artifactId>okhttp</artifactId>
5657
<version>4.12.0</version>
58+
<exclusions>
59+
<exclusion>
60+
<artifactId>kotlin-stdlib-jdk8</artifactId>
61+
<groupId>org.jetbrains.kotlin</groupId>
62+
</exclusion>
63+
</exclusions>
5764
</dependency>
5865

5966
<dependency>
6067
<groupId>org.freemarker</groupId>
6168
<artifactId>freemarker</artifactId>
62-
<version>2.3.32</version>
69+
<version>2.3.33</version>
6370
</dependency>
6471

6572
<dependency>
@@ -72,30 +79,29 @@
7279
<dependency>
7380
<groupId>org.assertj</groupId>
7481
<artifactId>assertj-core</artifactId>
75-
<version>3.25.1</version>
82+
<version>3.26.3</version>
7683
<scope>test</scope>
7784
</dependency>
7885

7986
<dependency>
8087
<groupId>org.mockito</groupId>
8188
<artifactId>mockito-junit-jupiter</artifactId>
82-
<version>5.9.0</version>
89+
<version>${mockito.version}</version>
8390
<scope>test</scope>
91+
<exclusions>
92+
<exclusion>
93+
<artifactId>junit-jupiter-api</artifactId>
94+
<groupId>org.junit.jupiter</groupId>
95+
</exclusion>
96+
<exclusion>
97+
<artifactId>mockito-core</artifactId>
98+
<groupId>org.mockito</groupId>
99+
</exclusion>
100+
</exclusions>
84101
</dependency>
85102

86103
</dependencies>
87104

88-
<dependencyManagement>
89-
<dependencies>
90-
<dependency>
91-
<!-- to remove dependency conflict in com.squareup.okhttp3 (not really a problem, but why not) -->
92-
<artifactId>kotlin-stdlib-jdk8</artifactId>
93-
<groupId>org.jetbrains.kotlin</groupId>
94-
<version>1.9.10</version>
95-
</dependency>
96-
</dependencies>
97-
</dependencyManagement>
98-
99105
<build>
100106
<resources>
101107
<resource>
@@ -115,7 +121,7 @@
115121
<plugin> <!-- In order to run tests when building -->
116122
<groupId>org.apache.maven.plugins</groupId>
117123
<artifactId>maven-surefire-plugin</artifactId>
118-
<version>3.2.5</version>
124+
<version>3.5.2</version>
119125
<dependencies>
120126
<dependency>
121127
<groupId>org.junit.jupiter</groupId>
@@ -124,15 +130,15 @@
124130
</dependency>
125131
</dependencies>
126132
<configuration>
127-
<!-- Removes warning: "Dynamic loading of agents will be disallowed by default in a future release" -->
128-
<argLine>-XX:+EnableDynamicAgentLoading</argLine>
133+
<!-- Explicitly setting up instrumentation for inline mocking (Java 21+) -->
134+
<argLine>-javaagent:${settings.localRepository}/org/mockito/mockito-core/${mockito.version}/mockito-core-${mockito.version}.jar</argLine>
129135
</configuration>
130136
</plugin>
131137

132138
<plugin> <!-- Generates code coverage report -->
133139
<groupId>org.jacoco</groupId>
134140
<artifactId>jacoco-maven-plugin</artifactId>
135-
<version>0.8.11</version>
141+
<version>0.8.12</version>
136142
<executions>
137143
<execution>
138144
<goals>
@@ -152,7 +158,7 @@
152158
<plugin> <!-- To create the application jar and all dependencies -->
153159
<groupId>org.apache.maven.plugins</groupId>
154160
<artifactId>maven-assembly-plugin</artifactId>
155-
<version>3.6.0</version>
161+
<version>3.7.1</version>
156162
<executions>
157163
<execution>
158164
<phase>package</phase>
@@ -198,7 +204,7 @@
198204
<plugin> <!-- To create an .exe file for Windows platform -->
199205
<groupId>com.akathist.maven.plugins.launch4j</groupId>
200206
<artifactId>launch4j-maven-plugin</artifactId>
201-
<version>2.5.0</version>
207+
<version>2.5.2</version>
202208
<executions>
203209
<execution>
204210
<id>l4j-clui</id>

0 commit comments

Comments
 (0)