Skip to content

Commit 8f0c79c

Browse files
committed
Suppress warnings when loading natives, add tip for users
1 parent 2146299 commit 8f0c79c

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ dependencies {
3939
</dependency>
4040
```
4141

42+
> [!TIP]
43+
> To remove the warning when the natives are loaded, add `--enable-native-access=ALL-UNNAMED` to your JVM arguments.
44+
4245
### Usage
4346
As a bot developer, you don't need to do anything.
4447

ffm-impl/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ tasks.named<JavaCompile>("compileJava") {
3939
tasks.withType<Test> {
4040
useJUnitPlatform()
4141

42+
jvmArgs("--enable-native-access=ALL-UNNAMED")
43+
4244
filter {
4345
isFailOnNoMatchingTests = false
4446

jna-impl/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ tasks.named<JavaCompile>("compileJava") {
3939
tasks.withType<Test> {
4040
useJUnitPlatform()
4141

42+
jvmArgs("--enable-native-access=ALL-UNNAMED")
43+
4244
filter {
4345
isFailOnNoMatchingTests = false
4446

jni-impl/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ tasks.named<JavaCompile>("compileJava") {
3838
tasks.withType<Test> {
3939
useJUnitPlatform()
4040

41+
jvmArgs("--enable-native-access=ALL-UNNAMED")
42+
4143
filter {
4244
isFailOnNoMatchingTests = false
4345

0 commit comments

Comments
 (0)