From 1ec75b0af298e52170e8c6f600760a24b00843ad Mon Sep 17 00:00:00 2001 From: bobbylight Date: Sun, 11 Jan 2026 23:07:31 -0500 Subject: [PATCH] Allow native access in manifest.mf --- README.md | 2 +- build.gradle | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 36d4e258..bd08cdd1 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ you would expect: ## Building RText uses [Gradle](https://gradle.org/) to build. To compile, run -all unit tests, and create the jar, and run: +all unit tests, create the jar, and run the app: ./gradlew build installDist java -jar build/install/rtext/RText.jar diff --git a/build.gradle b/build.gradle index 469d0737..d29317fd 100644 --- a/build.gradle +++ b/build.gradle @@ -103,6 +103,7 @@ jar { 'Implementation-Title': 'org.fife.rtext', 'Implementation-Version': version, 'Build-Date': Instant.now().toString(), + 'Enable-Native-Access': 'ALL-UNNAMED', // Needed for flatlaf, see https://github.com/JFormDesigner/FlatLaf/issues/1035 'Main-Class': 'org/fife/rtext/Main', 'Class-Path': configurations.runtimeClasspath.findAll { !JarPredicates.isPluginJar(it.name) }.collect { def name = it.name