Skip to content

Commit

Permalink
[pom] Define byte buddy agent for compiler and surefire
Browse files Browse the repository at this point in the history
newer jdks (ie 21 for example) are noting undefined usage will be blocked in the future, defining the used annotation processor as a result.
  • Loading branch information
hazendaz committed Jan 27, 2024
1 parent 095ebc6 commit 8760213
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
<spotbugs.onlyAnalyze>org.apache.ibatis.*</spotbugs.onlyAnalyze>

<!-- Surefire Setup -->
<argLine>-Xmx2048m</argLine>
<argLine>-Xmx2048m -javaagent:${settings.localRepository}/net/bytebuddy/byte-buddy-agent/${byte-buddy.version}/byte-buddy-agent-${byte-buddy.version}.jar</argLine>

<!-- Reproducible Builds -->
<project.build.outputTimestamp>1702533513</project.build.outputTimestamp>
Expand Down Expand Up @@ -355,6 +355,19 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-agent</artifactId>
<version>${byte-buddy.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down

0 comments on commit 8760213

Please sign in to comment.