This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new f8e1d2d4281 CAMEL-21843 - camel-kamelet - Move kamelet utils to
corresponding components - DJL (#17417)
f8e1d2d4281 is described below
commit f8e1d2d4281f965baf6c3085bc13756f442907d2
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Mar 11 14:02:44 2025 +0100
CAMEL-21843 - camel-kamelet - Move kamelet utils to corresponding
components - DJL (#17417)
Signed-off-by: Andrea Cosentino <[email protected]>
---
components/camel-ai/camel-djl/pom.xml | 10 ++++++++++
.../org/apache/camel/component}/djl/ImageNetUtil.java | 2 +-
components/camel-kamelet/pom.xml | 17 -----------------
parent/pom.xml | 4 +++-
4 files changed, 14 insertions(+), 19 deletions(-)
diff --git a/components/camel-ai/camel-djl/pom.xml
b/components/camel-ai/camel-djl/pom.xml
index 090dd923bc3..fc93267edc7 100644
--- a/components/camel-ai/camel-djl/pom.xml
+++ b/components/camel-ai/camel-djl/pom.xml
@@ -59,6 +59,16 @@
<artifactId>timeseries</artifactId>
<version>${djl-version}</version>
</dependency>
+ <dependency>
+ <groupId>net.sf.extjwnl</groupId>
+ <artifactId>extjwnl</artifactId>
+ <version>${extjwnl-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.extjwnl</groupId>
+ <artifactId>extjwnl-data-wn31</artifactId>
+ <version>${extjwnl-data-wn31-version}</version>
+ </dependency>
<!-- DJL builtin model -->
<dependency>
diff --git
a/components/camel-kamelet/src/main/java/org/apache/camel/component/kamelet/utils/djl/ImageNetUtil.java
b/components/camel-ai/camel-djl/src/main/java/org/apache/camel/component/djl/ImageNetUtil.java
similarity index 97%
rename from
components/camel-kamelet/src/main/java/org/apache/camel/component/kamelet/utils/djl/ImageNetUtil.java
rename to
components/camel-ai/camel-djl/src/main/java/org/apache/camel/component/djl/ImageNetUtil.java
index 7f4416deef9..aa96028c472 100644
---
a/components/camel-kamelet/src/main/java/org/apache/camel/component/kamelet/utils/djl/ImageNetUtil.java
+++
b/components/camel-ai/camel-djl/src/main/java/org/apache/camel/component/djl/ImageNetUtil.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.kamelet.utils.djl;
+package org.apache.camel.component.djl;
import java.util.List;
diff --git a/components/camel-kamelet/pom.xml b/components/camel-kamelet/pom.xml
index 018a567d0f1..829d984f141 100644
--- a/components/camel-kamelet/pom.xml
+++ b/components/camel-kamelet/pom.xml
@@ -59,18 +59,6 @@
<version>${langchain4j-version}</version>
<scope>provided</scope>
</dependency>
- <dependency>
- <groupId>net.sf.extjwnl</groupId>
- <artifactId>extjwnl</artifactId>
- <version>2.0.5</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>net.sf.extjwnl</groupId>
- <artifactId>extjwnl-data-wn31</artifactId>
- <version>1.2</version>
- <scope>provided</scope>
- </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jackson</artifactId>
@@ -86,11 +74,6 @@
<artifactId>camel-jackson-protobuf</artifactId>
<scope>provided</scope>
</dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-mongodb</artifactId>
- <scope>provided</scope>
- </dependency>
<!-- TESTS -->
<dependency>
diff --git a/parent/pom.xml b/parent/pom.xml
index 3fcd4e2668f..5602eb620e8 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -145,7 +145,9 @@
<ehcache3-version>3.10.8</ehcache3-version>
<elasticsearch-java-client-version>8.17.3</elasticsearch-java-client-version>
<elasticsearch-java-client-sniffer-version>8.17.3</elasticsearch-java-client-sniffer-version>
- <elytron-web>4.1.0.Final</elytron-web>
+ <elytron-web>4.1.0.Final</elytron-web>
+ <extjwnl-version>2.0.5</extjwnl-version>
+ <extjwnl-data-wn31-version>1.2</extjwnl-data-wn31-version>
<exec-maven-plugin-version>3.5.0</exec-maven-plugin-version>
<fastjson-version>2.0.56</fastjson-version>
<findbugs-maven-plugin-version>3.0.5</findbugs-maven-plugin-version>