Skip to content

Commit a783b19

Browse files
authored
Merge pull request #415 from IABTechLab/mkc-UID2-7328-fix-jvm-agent-warning
Remove JVM "dynamic agent loading" warning
2 parents 590aa35 + 78da324 commit a783b19

1 file changed

Lines changed: 21 additions & 31 deletions

File tree

pom.xml

Lines changed: 21 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
<properties>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1313

14-
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
15-
<maven-shade-plugin.version>3.2.4</maven-shade-plugin.version>
16-
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
14+
<maven-compiler-plugin.version>3.12.1</maven-compiler-plugin.version>
15+
<maven-dependency-plugin.version>3.11.0</maven-dependency-plugin.version>
16+
<maven-surefire-plugin.version>3.5.6</maven-surefire-plugin.version>
1717
<exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
1818

1919
<vertx.version>4.5.21</vertx.version>
@@ -94,27 +94,18 @@
9494
<dependency>
9595
<groupId>io.vertx</groupId>
9696
<artifactId>vertx-config</artifactId>
97-
<version>${vertx.version}</version>
9897
</dependency>
9998
<dependency>
10099
<groupId>io.vertx</groupId>
101100
<artifactId>vertx-web</artifactId>
102-
<version>${vertx.version}</version>
103101
</dependency>
104102
<dependency>
105103
<groupId>io.vertx</groupId>
106104
<artifactId>vertx-web-client</artifactId>
107-
<version>${vertx.version}</version>
108105
</dependency>
109106
<dependency>
110107
<groupId>io.vertx</groupId>
111108
<artifactId>vertx-micrometer-metrics</artifactId>
112-
<version>${vertx.version}</version>
113-
</dependency>
114-
<dependency>
115-
<groupId>co.nstant.in</groupId>
116-
<artifactId>cbor</artifactId>
117-
<version>0.9</version>
118109
</dependency>
119110
<dependency>
120111
<groupId>software.amazon.awssdk</groupId>
@@ -144,10 +135,6 @@
144135
<groupId>software.amazon.awssdk</groupId>
145136
<artifactId>secretsmanager</artifactId>
146137
</dependency>
147-
<dependency>
148-
<groupId>software.amazon.awssdk</groupId>
149-
<artifactId>kms</artifactId>
150-
</dependency>
151138
<dependency>
152139
<groupId>software.amazon.awssdk</groupId>
153140
<artifactId>sts</artifactId>
@@ -172,20 +159,9 @@
172159
<dependency>
173160
<groupId>org.mockito</groupId>
174161
<artifactId>mockito-core</artifactId>
175-
<version>5.12.0</version>
162+
<version>5.23.0</version>
176163
<scope>test</scope>
177164
</dependency>
178-
<dependency>
179-
<groupId>org.mockito</groupId>
180-
<artifactId>mockito-inline</artifactId>
181-
<version>5.2.0</version>
182-
<scope>test</scope>
183-
</dependency>
184-
<dependency>
185-
<groupId>net.bytebuddy</groupId>
186-
<artifactId>byte-buddy</artifactId>
187-
<version>1.14.17</version>
188-
</dependency>
189165
</dependencies>
190166

191167
<build>
@@ -205,10 +181,9 @@
205181
<plugin>
206182
<groupId>org.apache.maven.plugins</groupId>
207183
<artifactId>maven-compiler-plugin</artifactId>
208-
<version>3.12.1</version>
184+
<version>${maven-compiler-plugin.version}</version>
209185
<configuration>
210-
<source>21</source>
211-
<target>21</target>
186+
<release>21</release>
212187
</configuration>
213188
</plugin>
214189
<plugin>
@@ -307,6 +282,21 @@
307282
<groupId>org.apache.maven.plugins</groupId>
308283
<artifactId>maven-surefire-plugin</artifactId>
309284
<version>${maven-surefire-plugin.version}</version>
285+
<configuration>
286+
<argLine>@{argLine} -javaagent:${org.mockito:mockito-core:jar}</argLine>
287+
</configuration>
288+
</plugin>
289+
<plugin>
290+
<groupId>org.apache.maven.plugins</groupId>
291+
<artifactId>maven-dependency-plugin</artifactId>
292+
<version>${maven-dependency-plugin.version}</version>
293+
<executions>
294+
<execution>
295+
<goals>
296+
<goal>properties</goal>
297+
</goals>
298+
</execution>
299+
</executions>
310300
</plugin>
311301
</plugins>
312302
</build>

0 commit comments

Comments
 (0)