Skip to content

Commit d2cfc84

Browse files
committed
Adapt samples to work with platform
- Take versions of dependencies from Quarkus BOMs - Use platfrom-dependent version of qaurkus-maven-plugin (required for work with RHBQ) - Drop deployment dependecies (it doesn't look like their usage affects the size of the build at all)
1 parent 79463fd commit d2cfc84

File tree

22 files changed

+149
-422
lines changed

22 files changed

+149
-422
lines changed

samples/analyze-pdf-document/pom.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<quarkus.platform.version>3.20.0</quarkus.platform.version>
1919
<skipITs>true</skipITs>
2020
<surefire-plugin.version>3.2.5</surefire-plugin.version>
21-
<quarkus-langchain4j.version>1.1.1</quarkus-langchain4j.version>
2221
</properties>
2322

2423
<dependencyManagement>
@@ -30,6 +29,13 @@
3029
<type>pom</type>
3130
<scope>import</scope>
3231
</dependency>
32+
<dependency>
33+
<groupId>${quarkus.platform.group-id}</groupId>
34+
<artifactId>quarkus-langchain4j-bom</artifactId>
35+
<version>${quarkus.platform.version}</version>
36+
<type>pom</type>
37+
<scope>import</scope>
38+
</dependency>
3339
</dependencies>
3440
</dependencyManagement>
3541

@@ -41,7 +47,6 @@
4147
<dependency>
4248
<groupId>io.quarkiverse.langchain4j</groupId>
4349
<artifactId>quarkus-langchain4j-ai-gemini</artifactId>
44-
<version>${quarkus-langchain4j.version}</version>
4550
</dependency>
4651
<dependency>
4752
<groupId>io.quarkus</groupId>
@@ -57,7 +62,7 @@
5762
<build>
5863
<plugins>
5964
<plugin>
60-
<groupId>io.quarkus</groupId>
65+
<groupId>>${quarkus.platform.group-id}</groupId>
6166
<artifactId>quarkus-maven-plugin</artifactId>
6267
<version>${quarkus.platform.version}</version>
6368
<executions>

samples/chatbot-easy-rag-kotlin/pom.xml

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
<quarkus.platform.version>3.22.3</quarkus.platform.version>
2323
<kotest.version>5.9.1</kotest.version>
2424
<kotlinx-datetime.version>0.6.2</kotlinx-datetime.version>
25-
<quarkus-langchain4j.version>1.1.1</quarkus-langchain4j.version>
2625
<surefire-plugin.version>3.5.3</surefire-plugin.version>
2726
</properties>
2827

@@ -43,9 +42,9 @@
4342
<scope>import</scope>
4443
</dependency>
4544
<dependency>
46-
<groupId>io.quarkiverse.langchain4j</groupId>
45+
<groupId>${quarkus.platform.group-id}</groupId>
4746
<artifactId>quarkus-langchain4j-bom</artifactId>
48-
<version>${quarkus-langchain4j.version}</version>
47+
<version>${quarkus.platform.version}</version>
4948
<type>pom</type>
5049
<scope>import</scope>
5150
</dependency>
@@ -163,34 +162,6 @@
163162
<version>0.4.0</version>
164163
<scope>test</scope>
165164
</dependency>
166-
167-
<!-- Minimal dependencies to constrain the build -->
168-
<dependency>
169-
<groupId>io.quarkiverse.langchain4j</groupId>
170-
<artifactId>quarkus-langchain4j-openai-deployment</artifactId>
171-
<version>${quarkus-langchain4j.version}</version>
172-
<scope>test</scope>
173-
<type>pom</type>
174-
<exclusions>
175-
<exclusion>
176-
<groupId>*</groupId>
177-
<artifactId>*</artifactId>
178-
</exclusion>
179-
</exclusions>
180-
</dependency>
181-
<dependency>
182-
<groupId>io.quarkiverse.langchain4j</groupId>
183-
<artifactId>quarkus-langchain4j-easy-rag-deployment</artifactId>
184-
<version>${quarkus-langchain4j.version}</version>
185-
<scope>test</scope>
186-
<type>pom</type>
187-
<exclusions>
188-
<exclusion>
189-
<groupId>*</groupId>
190-
<artifactId>*</artifactId>
191-
</exclusion>
192-
</exclusions>
193-
</dependency>
194165
<dependency>
195166
<groupId>org.jetbrains.kotlin</groupId>
196167
<artifactId>kotlin-test-junit5</artifactId>
@@ -208,9 +179,8 @@
208179
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
209180

210181
<plugins>
211-
212182
<plugin>
213-
<groupId>io.quarkus</groupId>
183+
<groupId>${quarkus.platform.group-id}</groupId>
214184
<artifactId>quarkus-maven-plugin</artifactId>
215185
<version>${quarkus.platform.version}</version>
216186
<extensions>true</extensions>

samples/chatbot-easy-rag/pom.xml

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
1717
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
1818
<quarkus.platform.version>3.20.0</quarkus.platform.version>
19+
<quarkus-plugin.version>${quarkus.platform.version}</quarkus-plugin.version>
1920
<skipITs>true</skipITs>
2021
<surefire-plugin.version>3.2.5</surefire-plugin.version>
21-
<quarkus-langchain4j.version>1.1.1</quarkus-langchain4j.version>
2222
</properties>
2323

2424
<dependencyManagement>
@@ -30,6 +30,13 @@
3030
<type>pom</type>
3131
<scope>import</scope>
3232
</dependency>
33+
<dependency>
34+
<groupId>${quarkus.platform.group-id}</groupId>
35+
<artifactId>quarkus-langchain4j-bom</artifactId>
36+
<version>${quarkus.platform.version}</version>
37+
<type>pom</type>
38+
<scope>import</scope>
39+
</dependency>
3340
</dependencies>
3441
</dependencyManagement>
3542

@@ -45,12 +52,10 @@
4552
<dependency>
4653
<groupId>io.quarkiverse.langchain4j</groupId>
4754
<artifactId>quarkus-langchain4j-openai</artifactId>
48-
<version>${quarkus-langchain4j.version}</version>
4955
</dependency>
5056
<dependency>
5157
<groupId>io.quarkiverse.langchain4j</groupId>
5258
<artifactId>quarkus-langchain4j-easy-rag</artifactId>
53-
<version>${quarkus-langchain4j.version}</version>
5459
</dependency>
5560

5661
<!-- UI -->
@@ -71,39 +76,11 @@
7176
<version>0.2.1</version>
7277
<scope>runtime</scope>
7378
</dependency>
74-
75-
<!-- Minimal dependencies to constrain the build -->
76-
<dependency>
77-
<groupId>io.quarkiverse.langchain4j</groupId>
78-
<artifactId>quarkus-langchain4j-openai-deployment</artifactId>
79-
<version>${quarkus-langchain4j.version}</version>
80-
<scope>test</scope>
81-
<type>pom</type>
82-
<exclusions>
83-
<exclusion>
84-
<groupId>*</groupId>
85-
<artifactId>*</artifactId>
86-
</exclusion>
87-
</exclusions>
88-
</dependency>
89-
<dependency>
90-
<groupId>io.quarkiverse.langchain4j</groupId>
91-
<artifactId>quarkus-langchain4j-easy-rag-deployment</artifactId>
92-
<version>${quarkus-langchain4j.version}</version>
93-
<scope>test</scope>
94-
<type>pom</type>
95-
<exclusions>
96-
<exclusion>
97-
<groupId>*</groupId>
98-
<artifactId>*</artifactId>
99-
</exclusion>
100-
</exclusions>
101-
</dependency>
10279
</dependencies>
10380
<build>
10481
<plugins>
10582
<plugin>
106-
<groupId>io.quarkus</groupId>
83+
<groupId>${quarkus.platform.group-id}</groupId>
10784
<artifactId>quarkus-maven-plugin</artifactId>
10885
<version>${quarkus.platform.version}</version>
10986
<executions>

samples/chatbot-web-search/pom.xml

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<quarkus.platform.version>3.20.0</quarkus.platform.version>
1919
<skipITs>true</skipITs>
2020
<surefire-plugin.version>3.2.5</surefire-plugin.version>
21-
<quarkus-langchain4j.version>1.1.1</quarkus-langchain4j.version>
2221
</properties>
2322

2423
<dependencyManagement>
@@ -30,6 +29,13 @@
3029
<type>pom</type>
3130
<scope>import</scope>
3231
</dependency>
32+
<dependency>
33+
<groupId>${quarkus.platform.group-id}</groupId>
34+
<artifactId>quarkus-langchain4j-bom</artifactId>
35+
<version>${quarkus.platform.version}</version>
36+
<type>pom</type>
37+
<scope>import</scope>
38+
</dependency>
3339
</dependencies>
3440
</dependencyManagement>
3541

@@ -71,39 +77,11 @@
7177
<version>0.2.1</version>
7278
<scope>runtime</scope>
7379
</dependency>
74-
75-
<!-- Minimal dependencies to constrain the build -->
76-
<dependency>
77-
<groupId>io.quarkiverse.langchain4j</groupId>
78-
<artifactId>quarkus-langchain4j-openai-deployment</artifactId>
79-
<version>${quarkus-langchain4j.version}</version>
80-
<scope>test</scope>
81-
<type>pom</type>
82-
<exclusions>
83-
<exclusion>
84-
<groupId>*</groupId>
85-
<artifactId>*</artifactId>
86-
</exclusion>
87-
</exclusions>
88-
</dependency>
89-
<dependency>
90-
<groupId>io.quarkiverse.langchain4j</groupId>
91-
<artifactId>quarkus-langchain4j-tavily-deployment</artifactId>
92-
<version>${quarkus-langchain4j.version}</version>
93-
<scope>test</scope>
94-
<type>pom</type>
95-
<exclusions>
96-
<exclusion>
97-
<groupId>*</groupId>
98-
<artifactId>*</artifactId>
99-
</exclusion>
100-
</exclusions>
101-
</dependency>
10280
</dependencies>
10381
<build>
10482
<plugins>
10583
<plugin>
106-
<groupId>io.quarkus</groupId>
84+
<groupId>${quarkus.platform.group-id}</groupId>
10785
<artifactId>quarkus-maven-plugin</artifactId>
10886
<version>${quarkus.platform.version}</version>
10987
<executions>

samples/chatbot/pom.xml

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<quarkus.platform.version>3.20.0</quarkus.platform.version>
1919
<skipITs>true</skipITs>
2020
<surefire-plugin.version>3.2.5</surefire-plugin.version>
21-
<quarkus-langchain4j.version>1.1.1</quarkus-langchain4j.version>
2221
</properties>
2322

2423
<dependencyManagement>
@@ -30,6 +29,13 @@
3029
<type>pom</type>
3130
<scope>import</scope>
3231
</dependency>
32+
<dependency>
33+
<groupId>${quarkus.platform.group-id}</groupId>
34+
<artifactId>quarkus-langchain4j-bom</artifactId>
35+
<version>${quarkus.platform.version}</version>
36+
<type>pom</type>
37+
<scope>import</scope>
38+
</dependency>
3339
</dependencies>
3440
</dependencyManagement>
3541

@@ -45,12 +51,10 @@
4551
<dependency>
4652
<groupId>io.quarkiverse.langchain4j</groupId>
4753
<artifactId>quarkus-langchain4j-openai</artifactId>
48-
<version>${quarkus-langchain4j.version}</version>
4954
</dependency>
5055
<dependency>
5156
<groupId>io.quarkiverse.langchain4j</groupId>
5257
<artifactId>quarkus-langchain4j-redis</artifactId>
53-
<version>${quarkus-langchain4j.version}</version>
5458
</dependency>
5559

5660
<!-- UI -->
@@ -71,39 +75,11 @@
7175
<version>0.2.1</version>
7276
<scope>runtime</scope>
7377
</dependency>
74-
75-
<!-- Minimal dependencies to constrain the build -->
76-
<dependency>
77-
<groupId>io.quarkiverse.langchain4j</groupId>
78-
<artifactId>quarkus-langchain4j-openai-deployment</artifactId>
79-
<version>${quarkus-langchain4j.version}</version>
80-
<scope>test</scope>
81-
<type>pom</type>
82-
<exclusions>
83-
<exclusion>
84-
<groupId>*</groupId>
85-
<artifactId>*</artifactId>
86-
</exclusion>
87-
</exclusions>
88-
</dependency>
89-
<dependency>
90-
<groupId>io.quarkiverse.langchain4j</groupId>
91-
<artifactId>quarkus-langchain4j-redis-deployment</artifactId>
92-
<version>${quarkus-langchain4j.version}</version>
93-
<scope>test</scope>
94-
<type>pom</type>
95-
<exclusions>
96-
<exclusion>
97-
<groupId>*</groupId>
98-
<artifactId>*</artifactId>
99-
</exclusion>
100-
</exclusions>
101-
</dependency>
10278
</dependencies>
10379
<build>
10480
<plugins>
10581
<plugin>
106-
<groupId>io.quarkus</groupId>
82+
<groupId>${quarkus.platform.group-id}</groupId>
10783
<artifactId>quarkus-maven-plugin</artifactId>
10884
<version>${quarkus.platform.version}</version>
10985
<executions>

samples/cli-translator/pom.xml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<quarkus.platform.version>3.20.0</quarkus.platform.version>
1919
<skipITs>true</skipITs>
2020
<surefire-plugin.version>3.2.5</surefire-plugin.version>
21-
<quarkus-langchain4j.version>1.1.1</quarkus-langchain4j.version>
2221
</properties>
2322

2423
<dependencyManagement>
@@ -30,6 +29,13 @@
3029
<type>pom</type>
3130
<scope>import</scope>
3231
</dependency>
32+
<dependency>
33+
<groupId>${quarkus.platform.group-id}</groupId>
34+
<artifactId>quarkus-langchain4j-bom</artifactId>
35+
<version>${quarkus.platform.version}</version>
36+
<type>pom</type>
37+
<scope>import</scope>
38+
</dependency>
3339
</dependencies>
3440
</dependencyManagement>
3541

@@ -41,29 +47,13 @@
4147
<dependency>
4248
<groupId>io.quarkiverse.langchain4j</groupId>
4349
<artifactId>quarkus-langchain4j-openai</artifactId>
44-
<version>${quarkus-langchain4j.version}</version>
4550
</dependency>
46-
47-
<!-- Minimal dependencies to constrain the build -->
48-
<dependency>
49-
<groupId>io.quarkiverse.langchain4j</groupId>
50-
<artifactId>quarkus-langchain4j-openai-deployment</artifactId>
51-
<version>${quarkus-langchain4j.version}</version>
52-
<scope>test</scope>
53-
<type>pom</type>
54-
<exclusions>
55-
<exclusion>
56-
<groupId>*</groupId>
57-
<artifactId>*</artifactId>
58-
</exclusion>
59-
</exclusions>
60-
</dependency>
6151
</dependencies>
6252

6353
<build>
6454
<plugins>
6555
<plugin>
66-
<groupId>io.quarkus</groupId>
56+
<groupId>${quarkus.platform.group-id}</groupId>
6757
<artifactId>quarkus-maven-plugin</artifactId>
6858
<version>${quarkus.platform.version}</version>
6959
<executions>

0 commit comments

Comments
 (0)