Skip to content

Commit a0a37f8

Browse files
committed
Add ability to run integration tests with another version of the
extension This allows to use the tests with productized versions of the extension (and Quarkus)
1 parent 7f819d7 commit a0a37f8

File tree

29 files changed

+121
-62
lines changed

29 files changed

+121
-62
lines changed

integration-tests/ai-gemini/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<name>Quarkus LangChain4j - Integration Tests - AI Gemini</name>
1111
<properties>
1212
<skipITs>true</skipITs>
13+
<quarkus.langchain4j.version>${project.version}</quarkus.langchain4j.version>
1314
</properties>
1415
<dependencies>
1516
<dependency>
@@ -19,7 +20,7 @@
1920
<dependency>
2021
<groupId>io.quarkiverse.langchain4j</groupId>
2122
<artifactId>quarkus-langchain4j-ai-gemini</artifactId>
22-
<version>${project.version}</version>
23+
<version>${quarkus.langchain4j.version}</version>
2324
</dependency>
2425
<dependency>
2526
<groupId>io.quarkus</groupId>
@@ -55,7 +56,7 @@
5556
<dependency>
5657
<groupId>io.quarkiverse.langchain4j</groupId>
5758
<artifactId>quarkus-langchain4j-ai-gemini-deployment</artifactId>
58-
<version>${project.version}</version>
59+
<version>${quarkus.langchain4j.version}</version>
5960
<type>pom</type>
6061
<scope>test</scope>
6162
<exclusions>

integration-tests/anthropic/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<name>Quarkus LangChain4j - Integration Tests - Anthropic</name>
1111
<properties>
1212
<skipITs>true</skipITs>
13+
<quarkus.langchain4j.version>${project.version}</quarkus.langchain4j.version>
1314
</properties>
1415
<dependencies>
1516
<dependency>
@@ -19,7 +20,7 @@
1920
<dependency>
2021
<groupId>io.quarkiverse.langchain4j</groupId>
2122
<artifactId>quarkus-langchain4j-anthropic</artifactId>
22-
<version>${project.version}</version>
23+
<version>${quarkus.langchain4j.version}</version>
2324
</dependency>
2425
<dependency>
2526
<groupId>io.quarkus</groupId>
@@ -55,7 +56,7 @@
5556
<dependency>
5657
<groupId>io.quarkiverse.langchain4j</groupId>
5758
<artifactId>quarkus-langchain4j-anthropic-deployment</artifactId>
58-
<version>${project.version}</version>
59+
<version>${quarkus.langchain4j.version}</version>
5960
<type>pom</type>
6061
<scope>test</scope>
6162
<exclusions>

integration-tests/azure-openai/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<name>Quarkus LangChain4j - Integration Tests - Azure OpenAI</name>
1111
<properties>
1212
<skipITs>true</skipITs>
13+
<quarkus.langchain4j.version>${project.version}</quarkus.langchain4j.version>
1314
</properties>
1415
<dependencies>
1516
<dependency>
@@ -19,7 +20,7 @@
1920
<dependency>
2021
<groupId>io.quarkiverse.langchain4j</groupId>
2122
<artifactId>quarkus-langchain4j-azure-openai</artifactId>
22-
<version>${project.version}</version>
23+
<version>${quarkus.langchain4j.version}</version>
2324
</dependency>
2425
<dependency>
2526
<groupId>io.quarkus</groupId>
@@ -47,7 +48,7 @@
4748
<dependency>
4849
<groupId>io.quarkiverse.langchain4j</groupId>
4950
<artifactId>quarkus-langchain4j-azure-openai-deployment</artifactId>
50-
<version>${project.version}</version>
51+
<version>${quarkus.langchain4j.version}</version>
5152
<type>pom</type>
5253
<scope>test</scope>
5354
<exclusions>

integration-tests/devui-multiple-embedding-models/pom.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,19 @@
1010
<name>Quarkus LangChain4j - Integration Tests - Dev UI - Multiple embedding models</name>
1111
<properties>
1212
<skipITs>true</skipITs>
13+
<quarkus.langchain4j.version>${project.version}</quarkus.langchain4j.version>
1314
</properties>
1415
<dependencies>
1516
<!-- The test needs an embedding store and two embedding models -->
1617
<dependency>
1718
<groupId>io.quarkiverse.langchain4j</groupId>
1819
<artifactId>quarkus-langchain4j-chroma</artifactId>
19-
<version>${project.version}</version>
20+
<version>${quarkus.langchain4j.version}</version>
2021
</dependency>
2122
<dependency>
2223
<groupId>io.quarkiverse.langchain4j</groupId>
2324
<artifactId>quarkus-langchain4j-openai</artifactId>
24-
<version>${project.version}</version>
25+
<version>${quarkus.langchain4j.version}</version>
2526
</dependency>
2627
<dependency>
2728
<groupId>dev.langchain4j</groupId>
@@ -44,7 +45,7 @@
4445
<dependency>
4546
<groupId>io.quarkiverse.langchain4j</groupId>
4647
<artifactId>quarkus-langchain4j-core-deployment</artifactId>
47-
<version>${project.version}</version>
48+
<version>${quarkus.langchain4j.version}</version>
4849
<type>pom</type>
4950
<scope>test</scope>
5051
<exclusions>

integration-tests/devui/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
<name>Quarkus LangChain4j - Integration Tests - Dev UI</name>
1111
<properties>
1212
<skipITs>true</skipITs>
13+
<quarkus.langchain4j.version>${project.version}</quarkus.langchain4j.version>
1314
</properties>
1415
<dependencies>
1516
<!-- The test needs an embedding store and an embedding model -->
1617
<dependency>
1718
<groupId>io.quarkiverse.langchain4j</groupId>
1819
<artifactId>quarkus-langchain4j-chroma</artifactId>
19-
<version>${project.version}</version>
20+
<version>${quarkus.langchain4j.version}</version>
2021
</dependency>
2122
<dependency>
2223
<groupId>dev.langchain4j</groupId>
@@ -46,7 +47,7 @@
4647
<dependency>
4748
<groupId>io.quarkiverse.langchain4j</groupId>
4849
<artifactId>quarkus-langchain4j-core-deployment</artifactId>
49-
<version>${project.version}</version>
50+
<version>${quarkus.langchain4j.version}</version>
5051
<type>pom</type>
5152
<scope>test</scope>
5253
<exclusions>

integration-tests/easy-rag/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
<name>Quarkus LangChain4j - Integration Tests - Easy RAG</name>
1111
<properties>
1212
<skipITs>true</skipITs>
13+
<quarkus.langchain4j.version>${project.version}</quarkus.langchain4j.version>
1314
</properties>
1415
<dependencies>
1516
<dependency>
1617
<groupId>io.quarkiverse.langchain4j</groupId>
1718
<artifactId>quarkus-langchain4j-easy-rag</artifactId>
18-
<version>${project.version}</version>
19+
<version>${quarkus.langchain4j.version}</version>
1920
</dependency>
2021
<dependency>
2122
<groupId>io.quarkus</groupId>
@@ -38,7 +39,7 @@
3839
<dependency>
3940
<groupId>io.quarkiverse.langchain4j</groupId>
4041
<artifactId>quarkus-langchain4j-easy-rag-deployment</artifactId>
41-
<version>${project.version}</version>
42+
<version>${quarkus.langchain4j.version}</version>
4243
<type>pom</type>
4344
<scope>test</scope>
4445
<exclusions>

integration-tests/hugging-face/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<name>Quarkus LangChain4j - Integration Tests - Hugging Face</name>
1111
<properties>
1212
<skipITs>true</skipITs>
13+
<quarkus.langchain4j.version>${project.version}</quarkus.langchain4j.version>
1314
</properties>
1415
<dependencies>
1516
<dependency>
@@ -19,7 +20,7 @@
1920
<dependency>
2021
<groupId>io.quarkiverse.langchain4j</groupId>
2122
<artifactId>quarkus-langchain4j-hugging-face</artifactId>
22-
<version>${project.version}</version>
23+
<version>${quarkus.langchain4j.version}</version>
2324
</dependency>
2425
<dependency>
2526
<groupId>io.quarkus</groupId>
@@ -47,7 +48,7 @@
4748
<dependency>
4849
<groupId>io.quarkiverse.langchain4j</groupId>
4950
<artifactId>quarkus-langchain4j-hugging-face-deployment</artifactId>
50-
<version>${project.version}</version>
51+
<version>${quarkus.langchain4j.version}</version>
5152
<type>pom</type>
5253
<scope>test</scope>
5354
<exclusions>

integration-tests/in-process-embedding-models/embed-all-minilm-l6-v2-q/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@
1111
<artifactId>quarkus-langchain4j-integration-test-embed-all-minilm-l6-v2-q</artifactId>
1212
<name>Quarkus LangChain4j - Integration Tests - embeddings-all-minilm-l6-v2-q</name>
1313

14+
<properties>
15+
<quarkus.langchain4j.version>${project.version}</quarkus.langchain4j.version>
16+
</properties>
17+
1418
<dependencies>
1519
<dependency>
1620
<groupId>io.quarkiverse.langchain4j</groupId>
1721
<artifactId>quarkus-langchain4j-core</artifactId>
18-
<version>${project.version}</version>
22+
<version>${quarkus.langchain4j.version}</version>
1923
</dependency>
2024

2125
<dependency>

integration-tests/in-process-embedding-models/embed-all-minilm-l6-v2/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
<artifactId>quarkus-langchain4j-integration-test-embed-all-minilm-l6-v2</artifactId>
1212
<name>Quarkus LangChain4j - Integration Tests - embeddings-all-minilm-l6-v2</name>
1313

14+
<properties>
15+
<quarkus.langchain4j.version>${project.version}</quarkus.langchain4j.version>
16+
</properties>
17+
1418
<dependencies>
1519
<dependency>
1620
<groupId>dev.langchain4j</groupId>
@@ -21,7 +25,7 @@
2125
<dependency>
2226
<groupId>io.quarkiverse.langchain4j</groupId>
2327
<artifactId>quarkus-langchain4j-core</artifactId>
24-
<version>${project.version}</version>
28+
<version>${quarkus.langchain4j.version}</version>
2529
</dependency>
2630

2731
<dependency>

integration-tests/in-process-embedding-models/embed-bge-small-en-q/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
<artifactId>quarkus-langchain4j-integration-test-embed-bge-small-en-q</artifactId>
1212
<name>Quarkus LangChain4j - Integration Tests - embeddings-bge-small-en-q</name>
1313

14+
<properties>
15+
<quarkus.langchain4j.version>${project.version}</quarkus.langchain4j.version>
16+
</properties>
17+
1418
<dependencies>
1519
<dependency>
1620
<groupId>dev.langchain4j</groupId>
@@ -21,7 +25,7 @@
2125
<dependency>
2226
<groupId>io.quarkiverse.langchain4j</groupId>
2327
<artifactId>quarkus-langchain4j-core</artifactId>
24-
<version>${project.version}</version>
28+
<version>${quarkus.langchain4j.version}</version>
2529
</dependency>
2630

2731
<dependency>

0 commit comments

Comments
 (0)