From e5d73a2ffc2e9c671832a2f45eda30bab7a81518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E7=94=B7?= Date: Tue, 26 Nov 2024 22:51:38 +0800 Subject: [PATCH] JBERET-611 Move the MongoRepository and InfinispanRepository out of jberet-core --- jberet-core/pom.xml | 4 +- jberet-job-repositories/batchlet/pom.xml | 41 ++++++++++++++++++ .../org/jberet/repository/PurgeBatchlet.java | 0 .../infinispan-repository/pom.xml | 39 +++++++++++++++++ .../repository/InfinispanRepository.java | 0 .../mongo-repository/pom.xml | 35 +++++++++++++++ .../jberet/repository/MongoRepository.java | 0 jberet-job-repositories/pom.xml | 43 +++++++++++++++++++ jberet-se/pom.xml | 10 +++++ pom.xml | 1 + 10 files changed, 171 insertions(+), 2 deletions(-) create mode 100644 jberet-job-repositories/batchlet/pom.xml rename {jberet-core => jberet-job-repositories/batchlet}/src/main/java/org/jberet/repository/PurgeBatchlet.java (100%) create mode 100644 jberet-job-repositories/infinispan-repository/pom.xml rename {jberet-core => jberet-job-repositories/infinispan-repository}/src/main/java/org/jberet/repository/InfinispanRepository.java (100%) create mode 100644 jberet-job-repositories/mongo-repository/pom.xml rename {jberet-core => jberet-job-repositories/mongo-repository}/src/main/java/org/jberet/repository/MongoRepository.java (100%) create mode 100644 jberet-job-repositories/pom.xml diff --git a/jberet-core/pom.xml b/jberet-core/pom.xml index 61b0515c2..33c4cd15a 100644 --- a/jberet-core/pom.xml +++ b/jberet-core/pom.xml @@ -42,8 +42,8 @@ jakarta.transaction-api - org.mongodb - mongo-java-driver + org.wildfly.security + wildfly-security-manager org.infinispan diff --git a/jberet-job-repositories/batchlet/pom.xml b/jberet-job-repositories/batchlet/pom.xml new file mode 100644 index 000000000..8b1501e13 --- /dev/null +++ b/jberet-job-repositories/batchlet/pom.xml @@ -0,0 +1,41 @@ + + + + + + + 4.0.0 + + + org.jberet + jberet-job-repositories + 2.0.3.Final-SNAPSHOT + ../pom.xml + + + jberet-job-repository-batchlet + + + + org.jberet + jberet-infinispan-repository + ${project.version} + + + org.jberet + jberet-mongo-repository + ${project.version} + + + + diff --git a/jberet-core/src/main/java/org/jberet/repository/PurgeBatchlet.java b/jberet-job-repositories/batchlet/src/main/java/org/jberet/repository/PurgeBatchlet.java similarity index 100% rename from jberet-core/src/main/java/org/jberet/repository/PurgeBatchlet.java rename to jberet-job-repositories/batchlet/src/main/java/org/jberet/repository/PurgeBatchlet.java diff --git a/jberet-job-repositories/infinispan-repository/pom.xml b/jberet-job-repositories/infinispan-repository/pom.xml new file mode 100644 index 000000000..1056e41a3 --- /dev/null +++ b/jberet-job-repositories/infinispan-repository/pom.xml @@ -0,0 +1,39 @@ + + + + + + + 4.0.0 + + + org.jberet + jberet-job-repositories + 2.0.3.Final-SNAPSHOT + ../pom.xml + + + jberet-infinispan-repository + + + + org.infinispan + infinispan-core + + + org.infinispan + infinispan-commons + + + + diff --git a/jberet-core/src/main/java/org/jberet/repository/InfinispanRepository.java b/jberet-job-repositories/infinispan-repository/src/main/java/org/jberet/repository/InfinispanRepository.java similarity index 100% rename from jberet-core/src/main/java/org/jberet/repository/InfinispanRepository.java rename to jberet-job-repositories/infinispan-repository/src/main/java/org/jberet/repository/InfinispanRepository.java diff --git a/jberet-job-repositories/mongo-repository/pom.xml b/jberet-job-repositories/mongo-repository/pom.xml new file mode 100644 index 000000000..5b405eccc --- /dev/null +++ b/jberet-job-repositories/mongo-repository/pom.xml @@ -0,0 +1,35 @@ + + + + + + + 4.0.0 + + + org.jberet + jberet-job-repositories + 2.0.3.Final-SNAPSHOT + ../pom.xml + + + jberet-mongo-repository + + + + org.mongodb + mongo-java-driver + + + + diff --git a/jberet-core/src/main/java/org/jberet/repository/MongoRepository.java b/jberet-job-repositories/mongo-repository/src/main/java/org/jberet/repository/MongoRepository.java similarity index 100% rename from jberet-core/src/main/java/org/jberet/repository/MongoRepository.java rename to jberet-job-repositories/mongo-repository/src/main/java/org/jberet/repository/MongoRepository.java diff --git a/jberet-job-repositories/pom.xml b/jberet-job-repositories/pom.xml new file mode 100644 index 000000000..a7157b381 --- /dev/null +++ b/jberet-job-repositories/pom.xml @@ -0,0 +1,43 @@ + + + + + + + 4.0.0 + + + org.jberet + jberet-parent + 2.0.3.Final-SNAPSHOT + ../pom.xml + + + jberet-job-repositories + pom + + + mongo-repository + infinispan-repository + batchlet + + + + + org.jberet + jberet-core + ${project.version} + + + + diff --git a/jberet-se/pom.xml b/jberet-se/pom.xml index 3f4ebd0d7..677b7b124 100644 --- a/jberet-se/pom.xml +++ b/jberet-se/pom.xml @@ -31,6 +31,16 @@ SPDX-License-Identifier: EPL-2.0 jberet-core ${project.version} + + org.jberet + jberet-infinispan-repository + ${project.version} + + + org.jberet + jberet-mongo-repository + ${project.version} + jakarta.annotation jakarta.annotation-api diff --git a/pom.xml b/pom.xml index d42190944..341bab68b 100644 --- a/pom.xml +++ b/pom.xml @@ -140,6 +140,7 @@ jberet-core jberet-se + jberet-job-repositories jberet-se-bom jberet-manifest test-apps