@@ -8,7 +8,7 @@ description = "RedisVL4J - Vector Library for Java"
8
8
9
9
dependencies {
10
10
// Redis client
11
- api(" redis.clients:jedis:5 .2.0" )
11
+ api(" redis.clients:jedis:6 .2.0" )
12
12
13
13
// JSON processing
14
14
implementation(" com.fasterxml.jackson.core:jackson-databind:2.18.2" )
@@ -32,6 +32,63 @@ dependencies {
32
32
33
33
// SpotBugs annotations for suppressing false positives
34
34
implementation(" com.github.spotbugs:spotbugs-annotations:4.8.3" )
35
+
36
+ // LangChain4J - Core API (required for vectorizers)
37
+ compileOnly(" dev.langchain4j:langchain4j:0.36.2" )
38
+
39
+ // LangChain4J Embedding Providers (optional - users include what they need)
40
+ compileOnly(" dev.langchain4j:langchain4j-open-ai:0.36.2" )
41
+ compileOnly(" dev.langchain4j:langchain4j-azure-open-ai:0.36.2" )
42
+ compileOnly(" dev.langchain4j:langchain4j-hugging-face:0.36.2" )
43
+ compileOnly(" dev.langchain4j:langchain4j-ollama:0.36.2" )
44
+ compileOnly(" dev.langchain4j:langchain4j-vertex-ai-gemini:0.36.2" )
45
+
46
+ // LangChain4J Local Embedding Models (optional)
47
+ compileOnly(" dev.langchain4j:langchain4j-embeddings-all-minilm-l6-v2:0.36.2" )
48
+ compileOnly(" dev.langchain4j:langchain4j-embeddings-bge-small-en-v15:0.36.2" )
49
+ compileOnly(" dev.langchain4j:langchain4j-embeddings-e5-small-v2:0.36.2" )
50
+
51
+ // ONNX Runtime for running models locally
52
+ implementation(" com.microsoft.onnxruntime:onnxruntime:1.16.3" )
53
+
54
+ // HTTP client for downloading from HuggingFace
55
+ implementation(" com.squareup.okhttp3:okhttp:4.12.0" )
56
+
57
+ // JSON parsing for config.json
58
+ implementation(" com.google.code.gson:gson:2.10.1" )
59
+
60
+ // Test dependencies for LangChain4J (include in tests to verify integration)
61
+ testImplementation(" dev.langchain4j:langchain4j:0.36.2" )
62
+ testImplementation(" dev.langchain4j:langchain4j-embeddings-all-minilm-l6-v2:0.36.2" )
63
+ testImplementation(" dev.langchain4j:langchain4j-hugging-face:0.36.2" )
64
+
65
+ // Additional test dependencies
66
+ testImplementation(" com.squareup.okhttp3:mockwebserver:4.12.0" )
67
+ testImplementation(" org.mockito:mockito-core:5.11.0" )
68
+ }
69
+
70
+ // Configure test execution
71
+ tasks.test {
72
+ // Exclude slow and integration tests by default
73
+ useJUnitPlatform {
74
+ excludeTags(" slow" , " integration" )
75
+ }
76
+ }
77
+
78
+ // Create a task for running integration tests
79
+ tasks.register<Test >(" integrationTest" ) {
80
+ useJUnitPlatform {
81
+ includeTags(" integration" )
82
+ }
83
+ shouldRunAfter(tasks.test)
84
+ }
85
+
86
+ // Create a task for running slow tests
87
+ tasks.register<Test >(" slowTest" ) {
88
+ useJUnitPlatform {
89
+ includeTags(" slow" )
90
+ }
91
+ shouldRunAfter(tasks.test)
35
92
}
36
93
37
94
// Configure all JAR tasks to use the desired artifact name
0 commit comments