Fixed build with Java 17+.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2022-10-27 11:40:37 +02:00
parent 6ca9c4f878
commit 72d2724906
No known key found for this signature in database
GPG Key ID: 1677D141BCF3584D
3 changed files with 3 additions and 17 deletions

View File

@ -8,7 +8,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>jetty-quic-quiche-foreign-incubator</artifactId>
<name>Jetty Core :: QUIC :: Quiche :: Foreign Binding (incubator)</name>
<name>Jetty Core :: QUIC :: Quiche :: Foreign (Java 17)</name>
<properties>
<bundle-symbolic-name>${project.groupId}.quic-quiche-foreign-incubator</bundle-symbolic-name>
@ -20,9 +20,6 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>17</source>
<target>17</target>
<release>17</release>
<compilerArgs>
<arg>--add-modules</arg>
<arg>jdk.incubator.foreign</arg>

View File

@ -14,17 +14,6 @@
<modules>
<module>jetty-quic-quiche-common</module>
<module>jetty-quic-quiche-jna</module>
<module>jetty-quic-quiche-foreign-incubator</module>
</modules>
<profiles>
<profile>
<id>jdk17</id>
<activation>
<jdk>17</jdk>
</activation>
<modules>
<module>jetty-quic-quiche-foreign-incubator</module>
</modules>
</profile>
</profiles>
</project>

View File

@ -42,7 +42,7 @@
<profile>
<id>jdk17</id>
<activation>
<jdk>[17,)</jdk>
<jdk>17</jdk>
</activation>
<dependencies>
<dependency>