Skip to content

Commit 971d76e

Browse files
committed
🔧 Add Enable-Native-Access: ALL-UNNAMED to MANIFEST.MF to avoid warnings from com.sun.jna.Native (called be akuma lib) with Java 24
1 parent 7959e1a commit 971d76e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: core/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
<dependency>
4141
<groupId>org.kohsuke</groupId>
4242
<artifactId>akuma</artifactId>
43+
<!-- Will be removed due to https://github.com/SoftInstigate/restheart/issues/548
44+
When done, also remove <Enable-Native-Access>ALL-UNNAMED</Enable-Native-Access> in maven-jar-plugin configuration
45+
-->
4346
</dependency>
4447
<dependency>
4548
<groupId>net.java.dev.jna</groupId>
@@ -189,6 +192,8 @@
189192
</manifest>
190193
<manifestEntries>
191194
<Build-Time>${maven.build.timestamp}</Build-Time>
195+
<!-- akuma required JNA that logs warnings with Java 24. The following avoids it: -->
196+
<Enable-Native-Access>ALL-UNNAMED</Enable-Native-Access>
192197
</manifestEntries>
193198
</archive>
194199
</configuration>

0 commit comments

Comments
 (0)