Fix test-compile

This commit is contained in:
Chris Vest 2021-03-19 13:55:53 +01:00
parent eebdae8102
commit 56a131a4ae
1 changed files with 6 additions and 7 deletions

13
pom.xml
View File

@ -123,14 +123,13 @@
<compilerArgs>
<arg>--add-modules</arg>
<arg>jdk.incubator.foreign</arg>
<!--
These two are really only needed for test-compile, but the maven-compiler-plugin cannot express that
-->
<arg>--patch-module</arg>
<arg>io.netty.buffer=${io.netty:netty-buffer:test-jar:tests}</arg>
</compilerArgs>
<!-- Add the test-jar classes to the io.netty.buffer module for test-compile. -->
<testCompilerArgument>
--patch-module io.netty.buffer=${io.netty:netty-buffer:test-jar:tests}
</testCompilerArgument>
<excludes>
<exclude>**/package-info.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>