Skip to content

Commit f3d3532

Browse files
committed
explicitly mention bytebuddy as javaagent
1 parent 4197507 commit f3d3532

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
<!-- build plugin dependencies -->
3535
<mvn-compiler.version>3.13.0</mvn-compiler.version>
36+
<mvn-dependency.version>3.7.1</mvn-dependency.version>
3637
<mvn-surefire.version>3.5.1</mvn-surefire.version>
3738
<mvn-jar.version>3.4.2</mvn-jar.version>
3839
<mvn-source.version>3.3.1</mvn-source.version>
@@ -43,6 +44,9 @@
4344
<junit-tree-reporter.version>1.3.0</junit-tree-reporter.version>
4445
<jacoco.version>0.8.12</jacoco.version>
4546
<nexus-staging.version>1.7.0</nexus-staging.version>
47+
48+
<!-- Property used by surefire to determine jacoco engine -->
49+
<surefire.jacoco.args></surefire.jacoco.args>
4650
</properties>
4751

4852
<licenses>
@@ -162,6 +166,19 @@
162166
</annotationProcessorPaths>
163167
</configuration>
164168
</plugin>
169+
<plugin>
170+
<groupId>org.apache.maven.plugins</groupId>
171+
<artifactId>maven-dependency-plugin</artifactId>
172+
<version>${mvn-dependency.version}</version>
173+
<executions>
174+
<execution>
175+
<id>jar-paths-to-properties</id>
176+
<goals>
177+
<goal>properties</goal>
178+
</goals>
179+
</execution>
180+
</executions>
181+
</plugin>
165182
<plugin>
166183
<groupId>org.apache.maven.plugins</groupId>
167184
<artifactId>maven-surefire-plugin</artifactId>
@@ -183,6 +200,7 @@
183200
<statelessTestsetInfoReporter
184201
implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoTreeReporter">
185202
</statelessTestsetInfoReporter>
203+
<argLine>@{surefire.jacoco.args} -javaagent:${net.bytebuddy:byte-buddy-agent:jar}</argLine>
186204
</configuration>
187205
</plugin>
188206
<plugin>
@@ -288,6 +306,9 @@
288306
<goals>
289307
<goal>prepare-agent</goal>
290308
</goals>
309+
<configuration>
310+
<propertyName>surefire.jacoco.args</propertyName>
311+
</configuration>
291312
</execution>
292313
<execution>
293314
<id>report</id>

0 commit comments

Comments
 (0)