Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-17525: Add test permissions and fix docs

Houston Putman2728f7a4077f
diff --git a/solr/licenses/langchain4j-0.35.0.jar.sha1 b/solr/licenses/langchain4j-0.35.0.jar.sha1
deleted file mode 100644
index 2199fe110d3..00000000000
--- a/solr/licenses/langchain4j-0.35.0.jar.sha1
+++ /dev/null
@@ -1 +0,0 @@
-f739eae706dcfd090c56c2a470e1b6bd8d60e175
diff --git a/solr/modules/llm/build.gradle b/solr/modules/llm/build.gradle
index b6c3d57eb15..d8f02056b50 100644
--- a/solr/modules/llm/build.gradle
+++ b/solr/modules/llm/build.gradle
@@ -39,3 +39,9 @@ dependencies {
testImplementation libs.commonsio.commonsio
}
+
+// 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"])
+}