Skip to content

Commit

Permalink
explicitly mention bytebuddy as javaagent
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Oct 30, 2024
1 parent 4197507 commit f3d3532
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

<!-- build plugin dependencies -->
<mvn-compiler.version>3.13.0</mvn-compiler.version>
<mvn-dependency.version>3.7.1</mvn-dependency.version>
<mvn-surefire.version>3.5.1</mvn-surefire.version>
<mvn-jar.version>3.4.2</mvn-jar.version>
<mvn-source.version>3.3.1</mvn-source.version>
Expand All @@ -43,6 +44,9 @@
<junit-tree-reporter.version>1.3.0</junit-tree-reporter.version>
<jacoco.version>0.8.12</jacoco.version>
<nexus-staging.version>1.7.0</nexus-staging.version>

<!-- Property used by surefire to determine jacoco engine -->
<surefire.jacoco.args></surefire.jacoco.args>
</properties>

<licenses>
Expand Down Expand Up @@ -162,6 +166,19 @@
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${mvn-dependency.version}</version>
<executions>
<execution>
<id>jar-paths-to-properties</id>
<goals>
<goal>properties</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand All @@ -183,6 +200,7 @@
<statelessTestsetInfoReporter
implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoTreeReporter">
</statelessTestsetInfoReporter>
<argLine>@{surefire.jacoco.args} -javaagent:${net.bytebuddy:byte-buddy-agent:jar}</argLine>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -288,6 +306,9 @@
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<propertyName>surefire.jacoco.args</propertyName>
</configuration>
</execution>
<execution>
<id>report</id>
Expand Down

0 comments on commit f3d3532

Please sign in to comment.