-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.gradle.kts
43 lines (34 loc) · 1.28 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
plugins {
id("java")
}
group = "com.kousenit"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
val langchain4jVersion = "0.36.2"
dependencies {
// LangChain4j Easy RAG example
implementation("dev.langchain4j:langchain4j:${langchain4jVersion}")
implementation("dev.langchain4j:langchain4j-open-ai:${langchain4jVersion}")
implementation("dev.langchain4j:langchain4j-ollama:${langchain4jVersion}")
implementation("dev.langchain4j:langchain4j-google-ai-gemini:${langchain4jVersion}")
implementation("dev.langchain4j:langchain4j-easy-rag:${langchain4jVersion}") {
exclude(group = "org.apache.logging.log4j", module = "log4j-api")
}
// Gson parser
implementation("com.google.code.gson:gson:2.11.0")
// Logging
implementation("org.slf4j:slf4j-simple:2.0.7")
// Testing libraries
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.assertj:assertj-core:3.26.3")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
// Security issue with mime4j from langchain4j
implementation("org.apache.james:apache-mime4j-core:0.8.11")
}
tasks.test {
useJUnitPlatform()
jvmArgs("-XX:+EnableDynamicAgentLoading", "-Xshare:off")
}