Skip to content

Commit 8113094

Browse files
committed
Add Java10+ support to build tests
Using profile to skip javah from NAR add jni config for maven-compiler-plugin
1 parent 4048b7f commit 8113094

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/it/it-parent/pom.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,33 @@
8888
</plugins>
8989
</build>
9090
</profile>
91+
<profile>
92+
<id>java-10+</id>
93+
<activation>
94+
<jdk>[10,)</jdk>
95+
</activation>
96+
<build>
97+
<plugins>
98+
<plugin>
99+
<groupId>com.github.maven-nar</groupId>
100+
<artifactId>nar-maven-plugin</artifactId>
101+
<configuration>
102+
<javah>
103+
<skip>true</skip>
104+
</javah>
105+
</configuration>
106+
</plugin>
107+
<plugin>
108+
<groupId>org.apache.maven.plugins</groupId>
109+
<artifactId>maven-compiler-plugin</artifactId>
110+
<configuration>
111+
<compilerArguments>
112+
<h>${project.build.directory}/nar/javah-include</h>
113+
</compilerArguments>
114+
</configuration>
115+
</plugin>
116+
</plugins>
117+
</build>
118+
</profile>
91119
</profiles>
92120
</project>

0 commit comments

Comments
 (0)