Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Commit b796027

Browse files
committed
Add slf4j exclusion + use property for ai.djl version
1 parent 03a00f8 commit b796027

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

langchain4j-embeddings/pom.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
<artifactId>langchain4j-embeddings</artifactId>
1515
<name>langchain4j-embeddings</name>
1616
<description>Common functionality for other langchain4j-embeddings-xxx modules</description>
17+
18+
<properties>
19+
<ai.djl.version>0.28.0</ai.djl.version>
20+
</properties>
1721

1822
<dependencies>
1923

@@ -32,13 +36,17 @@
3236
<dependency>
3337
<groupId>ai.djl</groupId>
3438
<artifactId>api</artifactId>
35-
<version>0.28.0</version>
39+
<version>${ai.djl.version}</version>
3640
<exclusions>
3741
<!-- due to CVE-2024-26308 and CVE-2024-25710-->
3842
<exclusion>
3943
<groupId>org.apache.commons</groupId>
4044
<artifactId>commons-compress</artifactId>
4145
</exclusion>
46+
<exclusion>
47+
<groupId>org.slf4j</groupId>
48+
<artifactId>slf4j-api</artifactId>
49+
</exclusion>
4250
</exclusions>
4351
</dependency>
4452
<dependency>
@@ -50,7 +58,7 @@
5058
<dependency>
5159
<groupId>ai.djl.huggingface</groupId>
5260
<artifactId>tokenizers</artifactId>
53-
<version>0.28.0</version>
61+
<version>${ai.djl.version}</version>
5462
<exclusions>
5563
<exclusion>
5664
<groupId>ai.djl</groupId>

0 commit comments

Comments
 (0)