Skip to content

Commit 8aee01f

Browse files
committed
build: add VCR demo projects to multi-project build
Updates build configuration: - settings.gradle.kts: include langchain4j-vcr and spring-ai-vcr demos - build.gradle.kts: configure demo subprojects with dependencies - core/build.gradle.kts: add testcontainers dependency for VCR Demo projects inherit common configuration and add their specific AI framework dependencies (LangChain4J or Spring AI with OpenAI).
1 parent 8313b05 commit 8aee01f

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ allprojects {
1616
maven {
1717
url = uri("https://repo.spring.io/milestone")
1818
}
19+
maven {
20+
url = uri("https://repo.spring.io/snapshot")
21+
}
1922
}
2023
}
2124

core/build.gradle.kts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
java
33
`java-library`
44
`maven-publish`
5+
id("io.spring.dependency-management") version "1.1.7"
56
}
67

78
description = "RedisVL - Vector Library for Java"
@@ -83,6 +84,11 @@ dependencies {
8384
testImplementation("dev.langchain4j:langchain4j-embeddings-all-minilm-l6-v2:0.36.2")
8485
testImplementation("dev.langchain4j:langchain4j-hugging-face:0.36.2")
8586

87+
// Spring AI for VCR testing (optional - users include what they need)
88+
// Version managed by spring-ai-bom (spring-ai-model contains EmbeddingModel interface)
89+
compileOnly("org.springframework.ai:spring-ai-model")
90+
testImplementation("org.springframework.ai:spring-ai-model")
91+
8692
// Cohere for integration tests
8793
testImplementation("com.cohere:cohere-java:1.8.1")
8894

@@ -97,6 +103,15 @@ dependencies {
97103
testImplementation("net.bytebuddy:byte-buddy-agent:1.14.12")
98104
}
99105

106+
// Spring AI 1.1.0 - BOM for dependency management
107+
val springAiVersion = "1.1.0"
108+
109+
dependencyManagement {
110+
imports {
111+
mavenBom("org.springframework.ai:spring-ai-bom:$springAiVersion")
112+
}
113+
}
114+
100115
// Configure test execution
101116
tasks.test {
102117
// Exclude slow and integration tests by default

settings.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ include("docs")
66

77
// Demos
88
include("demos:rag-multimodal")
9+
include("demos:langchain4j-vcr")
10+
include("demos:spring-ai-vcr")
911

1012
// Configure module locations
1113
project(":core").projectDir = file("core")
1214
project(":docs").projectDir = file("docs")
1315
project(":demos:rag-multimodal").projectDir = file("demos/rag-multimodal")
16+
project(":demos:langchain4j-vcr").projectDir = file("demos/langchain4j-vcr")
17+
project(":demos:spring-ai-vcr").projectDir = file("demos/spring-ai-vcr")
1418

1519
// Enable build cache for faster builds
1620
buildCache {

0 commit comments

Comments
 (0)