This is an automated email from the ASF dual-hosted git repository.
houston pushed a commit to branch branch_9_8
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9_8 by this push:
new f1edb85d5a9 SOLR-17525: Add test permissions and fix docs
f1edb85d5a9 is described below
commit f1edb85d5a9e11d2311812684b5615a75d4ec432
Author: Houston Putman <[email protected]>
AuthorDate: Mon Jan 6 12:21:35 2025 -0600
SOLR-17525: Add test permissions and fix docs
(cherry picked from commit 2728f7a4077f6aa4118dc81b4beacecc53ea2e18)
---
solr/modules/llm/build.gradle | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/solr/modules/llm/build.gradle b/solr/modules/llm/build.gradle
index 9f8ef218f66..f9660336de6 100644
--- a/solr/modules/llm/build.gradle
+++ b/solr/modules/llm/build.gradle
@@ -39,3 +39,9 @@ dependencies {
testImplementation 'junit:junit'
testImplementation 'commons-io:commons-io'
}
+
+// langchain4j has reflection issues, and requires the following permissions
+//
https://docs.gradle.org/current/userguide/upgrading_version_7.html#removes_implicit_add_opens_for_test_workers
+tasks.withType(Test).configureEach {
+ jvmArgs(["--add-opens=java.base/java.lang.invoke=ALL-UNNAMED"])
+}