diff --git a/.github/workflows/PR-pipeline.yml b/.github/workflows/PR-pipeline.yml
index 7758104..10e89c1 100644
--- a/.github/workflows/PR-pipeline.yml
+++ b/.github/workflows/PR-pipeline.yml
@@ -15,10 +15,10 @@ jobs:
steps:
- name: Download repository
uses: actions/checkout@v4
- - name: Set up JDK 11
+ - name: Set up JDK 17
uses: actions/setup-java@v3
with:
- java-version: 11
+ java-version: 17
distribution: 'adopt'
- name: Cache Maven packages
uses: actions/cache@v3
@@ -46,10 +46,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- - name: Set up JDK 11
+ - name: Set up JDK 17
uses: actions/setup-java@v3
with:
- java-version: 11
+ java-version: 17
distribution: 'adopt'
- name: Cache SonarCloud packages
uses: actions/cache@v3
@@ -83,10 +83,10 @@ jobs:
steps:
- name: Download repository
uses: actions/checkout@v4
- - name: Set up JDK 11
+ - name: Set up JDK 17
uses: actions/setup-java@v3
with:
- java-version: 11
+ java-version: 17
distribution: 'adopt'
- name: Cache
uses: actions/cache@v3.3.1
diff --git a/.github/workflows/maven-packages-publish.yml b/.github/workflows/maven-packages-publish.yml
index 65cb511..6d342d4 100644
--- a/.github/workflows/maven-packages-publish.yml
+++ b/.github/workflows/maven-packages-publish.yml
@@ -16,10 +16,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- - name: Set up JDK 11
+ - name: Set up JDK 17
uses: actions/setup-java@v3
with:
- java-version: 11
+ java-version: 17
distribution: 'adopt'
- name: maven install
run: mvn clean install
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index e916e60..ef77bad 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -22,10 +22,10 @@ jobs:
steps:
- name: Download repository
uses: actions/checkout@v4
- - name: Set up JDK 11
+ - name: Set up JDK 17
uses: actions/setup-java@v3
with:
- java-version: 11
+ java-version: 17
distribution: 'adopt'
- name: Cache Maven packages
uses: actions/cache@v3
@@ -78,10 +78,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- - name: Set up JDK 11
+ - name: Set up JDK 17
uses: actions/setup-java@v3
with:
- java-version: 11
+ java-version: 17
distribution: 'adopt'
- name: Cache SonarCloud packages
uses: actions/cache@v3
@@ -108,10 +108,10 @@ jobs:
steps:
- name: Download repository
uses: actions/checkout@v4
- - name: Set up JDK 11
+ - name: Set up JDK 17
uses: actions/setup-java@v3
with:
- java-version: 11
+ java-version: 17
distribution: 'adopt'
- name: Cache Maven packages
uses: actions/cache@v3
@@ -152,10 +152,10 @@ jobs:
steps:
- name: Download repository
uses: actions/checkout@v4
- - name: Set up JDK 11
+ - name: Set up JDK 17
uses: actions/setup-java@v3
with:
- java-version: 11
+ java-version: 17
distribution: 'adopt'
- name: Cache
uses: actions/cache@v3.3.1
diff --git a/base-domain/pom.xml b/base-domain/pom.xml
index 630c7dc..21676cb 100644
--- a/base-domain/pom.xml
+++ b/base-domain/pom.xml
@@ -49,7 +49,7 @@
spring-boot-starter-data-mongodb
org.springframework.boot
- 2.7.14
+ 3.1.2
de.flapdoodle.embed.mongo
@@ -73,9 +73,9 @@
- 11
- 11
- 11
+ 17
+ 17
+ 17
UTF-8
VERBOSE
1.0.0-SNAPSHOT
diff --git a/inventory/pom.xml b/inventory/pom.xml
index a0ee319..94f625f 100644
--- a/inventory/pom.xml
+++ b/inventory/pom.xml
@@ -2,228 +2,228 @@
- inventory
-
-
-
- com.diffplug.spotless
- spotless-maven-plugin
- 2.22.1
-
-
- apply
- compile
-
- apply
-
-
-
- check
-
- check
-
-
-
-
-
-
- src/main/java/**/*.java
- src/test/java/**/*.java
-
-
-
-
-
-
-
+ inventory
+
+
+
+ com.diffplug.spotless
+ spotless-maven-plugin
+ 2.35.0
+
+
+ apply
+ compile
+
+ apply
+
+
+
+ check
+
+ check
+
+
+
+
+
+
+ src/main/java/**/*.java
+ src/test/java/**/*.java
+
+
+
+
+
+
+
-
- org.springframework.boot
- spring-boot-maven-plugin
- 2.3.2.RELEASE
-
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ 2.3.2.RELEASE
+
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.10.1
-
-
- ${java.version}
-
-
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.10.1
+
+
+ ${java.version}
+
+
-
- org.apache.maven.plugins
- maven-jar-plugin
- 3.3.0
-
-
- prepare-package
-
- jar
-
-
- qa
-
- **/Application*
-
-
-
-
-
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ 3.3.0
+
+
+ prepare-package
+
+ jar
+
+
+ qa
+
+ **/Application*
+
+
+
+
+
-
-
- org.jacoco
- jacoco-maven-plugin
- 0.8.8
-
-
-
- prepare-agent
-
-
-
- report
- prepare-package
-
- report
-
-
-
-
-
- **/model/*.class
- **/InventoryApplication.class
- **/SwaggerConfig.class
- **/dto/*.class
-
-
-
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.8
+
+
+
+ prepare-agent
+
+
+
+ report
+ prepare-package
+
+ report
+
+
+
+
+
+ **/model/*.class
+ **/InventoryApplication.class
+ **/SwaggerConfig.class
+ **/dto/*.class
+
+
+
-
+
-
- org.pitest
- pitest-maven
- 1.7.5
-
-
- org.pitest
- pitest-junit5-plugin
- 0.12
-
-
-
- com.ecommerceapp.inventory.integration.*
- com.ecommerceapp.inventory.contract.*
-
- com.ecommerceapp.inventory.controller.*
- com.ecommerceapp.inventory.repository.*
- com.ecommerceapp.inventory.service.*
-
-
- HTML
- XML
-
-
- true
-
- false
-
-
+
+ org.pitest
+ pitest-maven
+ 1.7.5
+
+
+ org.pitest
+ pitest-junit5-plugin
+ 0.12
+
+
+
+ com.ecommerceapp.inventory.integration.*
+ com.ecommerceapp.inventory.contract.*
+
+ com.ecommerceapp.inventory.controller.*
+ com.ecommerceapp.inventory.repository.*
+ com.ecommerceapp.inventory.service.*
+
+
+ HTML
+ XML
+
+
+ true
+
+ false
+
+
-
-
+
+
-
-
- com.ecommerceapp
- base-domain
- 1.0.0-SNAPSHOT
-
-
- spring-boot-starter-actuator
- org.springframework.boot
- 2.7.14
-
-
- spring-boot-starter-web
- org.springframework.boot
- 2.7.14
-
+
+
+ com.ecommerceapp
+ base-domain
+ 1.0.0-SNAPSHOT
+
+
+ spring-boot-starter-actuator
+ org.springframework.boot
+ 2.7.14
+
+
+ spring-boot-starter-web
+ org.springframework.boot
+ 2.7.14
+
-
- spring-boot-starter-test
-
-
- junit-vintage-engine
- org.junit.vintage
-
-
- org.springframework.boot
- 3.1.2
- test
-
-
- persistence-api
- javax.persistence
- 1.0.2
-
-
- spring-boot-starter-data-mongodb
- org.springframework.boot
- 3.1.2
-
-
- de.flapdoodle.embed.mongo
- de.flapdoodle.embed
- test
- 2.2.0
-
-
- org.projectlombok
- lombok
- 1.18.24
-
+
+ spring-boot-starter-test
+
+
+ junit-vintage-engine
+ org.junit.vintage
+
+
+ org.springframework.boot
+ 3.1.2
+ test
+
+
+ persistence-api
+ javax.persistence
+ 1.0.2
+
+
+ spring-boot-starter-data-mongodb
+ org.springframework.boot
+ 3.1.2
+
+
+ de.flapdoodle.embed.mongo
+ de.flapdoodle.embed
+ test
+ 2.2.0
+
+
+ org.projectlombok
+ lombok
+ 1.18.24
+
-
- javax.validation
- validation-api
- 2.0.1.Final
-
+
+ javax.validation
+ validation-api
+ 2.0.1.Final
+
-
- io.springfox
- springfox-swagger2
- 3.0.0
-
+
+ io.springfox
+ springfox-swagger2
+ 3.0.0
+
-
- io.springfox
- springfox-boot-starter
- 3.0.0
-
+
+ io.springfox
+ springfox-boot-starter
+ 3.0.0
+
-
- io.springfox
- springfox-swagger-ui
- 3.0.0
-
+
+ io.springfox
+ springfox-swagger-ui
+ 3.0.0
+
-
- au.com.dius.pact.provider
- junit5spring
- 4.3.6
- test
-
+
+ au.com.dius.pact.provider
+ junit5spring
+ 4.3.6
+ test
+
-
+
@@ -234,25 +234,25 @@
- Ecommerce Inventory
- com.ecommerceapp
- 4.0.0
- inventory
- jar
-
- spring-boot-starter-parent
- org.springframework.boot
-
- 2.3.2.RELEASE
-
+ Ecommerce Inventory
+ com.ecommerceapp
+ 4.0.0
+ inventory
+ jar
+
+ spring-boot-starter-parent
+ org.springframework.boot
+
+ 2.3.2.RELEASE
+
-
- 11
-
- ${project.basedir}/../inventory/target/site/jacoco/jacoco.xml
-
-
+
+ 11
+
+ ${project.basedir}/../inventory/target/site/jacoco/jacoco.xml
+
+
- 0.0.1-SNAPSHOT
+ 0.0.1-SNAPSHOT
\ No newline at end of file
diff --git a/shipment/pom.xml b/shipment/pom.xml
index e6df597..f4629be 100644
--- a/shipment/pom.xml
+++ b/shipment/pom.xml
@@ -34,7 +34,7 @@
com.diffplug.spotless
spotless-maven-plugin
- 2.22.1
+ 2.35.0
apply
@@ -283,6 +283,11 @@
junit5
4.3.6
+
+ joda-time
+ joda-time
+ 2.10.5
+
diff --git a/shipment/src/main/java/com/ecommerceapp/shipment/domain/OrderShipment.java b/shipment/src/main/java/com/ecommerceapp/shipment/domain/OrderShipment.java
index bc1975d..7d6ffac 100644
--- a/shipment/src/main/java/com/ecommerceapp/shipment/domain/OrderShipment.java
+++ b/shipment/src/main/java/com/ecommerceapp/shipment/domain/OrderShipment.java
@@ -2,11 +2,11 @@
import com.ecommerceapp.domain.Order;
import io.swagger.annotations.ApiModelProperty;
-import java.time.LocalDate;
import java.util.Date;
import javax.persistence.*;
import lombok.Getter;
import lombok.Setter;
+import org.joda.time.LocalDate;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.mongodb.core.mapping.Document;
diff --git a/shipment/src/main/java/com/ecommerceapp/shipment/service/ShipmentService.java b/shipment/src/main/java/com/ecommerceapp/shipment/service/ShipmentService.java
index ab6930b..98a0673 100644
--- a/shipment/src/main/java/com/ecommerceapp/shipment/service/ShipmentService.java
+++ b/shipment/src/main/java/com/ecommerceapp/shipment/service/ShipmentService.java
@@ -6,12 +6,12 @@
import com.ecommerceapp.shipment.repository.OrderShipmentRepository;
import com.ecommerceapp.shipment.service.kafka.MessageListenerShipment;
import com.github.javafaker.Faker;
-import java.time.LocalDate;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.Optional;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
+import org.joda.time.LocalDate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
diff --git a/shipment/src/test/java/com/ecommerceapp/shipment/unit/controller/ShipmentControllerTest.java b/shipment/src/test/java/com/ecommerceapp/shipment/unit/controller/ShipmentControllerTest.java
index 52b7749..8395b68 100644
--- a/shipment/src/test/java/com/ecommerceapp/shipment/unit/controller/ShipmentControllerTest.java
+++ b/shipment/src/test/java/com/ecommerceapp/shipment/unit/controller/ShipmentControllerTest.java
@@ -14,9 +14,9 @@
import com.ecommerceapp.shipment.domain.Location;
import com.ecommerceapp.shipment.domain.OrderShipment;
import com.ecommerceapp.shipment.service.ShipmentService;
-import java.time.LocalDate;
import java.util.List;
import java.util.NoSuchElementException;
+import org.joda.time.LocalDate;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
diff --git a/shipment/src/test/java/com/ecommerceapp/shipment/unit/repository/OrderShipmentRepositoryTest.java b/shipment/src/test/java/com/ecommerceapp/shipment/unit/repository/OrderShipmentRepositoryTest.java
index 470212e..9244017 100644
--- a/shipment/src/test/java/com/ecommerceapp/shipment/unit/repository/OrderShipmentRepositoryTest.java
+++ b/shipment/src/test/java/com/ecommerceapp/shipment/unit/repository/OrderShipmentRepositoryTest.java
@@ -6,9 +6,9 @@
import com.ecommerceapp.shipment.domain.Location;
import com.ecommerceapp.shipment.domain.OrderShipment;
import com.ecommerceapp.shipment.repository.OrderShipmentRepository;
-import java.time.LocalDate;
import java.util.List;
import java.util.Optional;
+import org.joda.time.LocalDate;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
diff --git a/shipment/src/test/java/com/ecommerceapp/shipment/unit/service/ShipmentServiceTest.java b/shipment/src/test/java/com/ecommerceapp/shipment/unit/service/ShipmentServiceTest.java
index ca24431..743b16b 100644
--- a/shipment/src/test/java/com/ecommerceapp/shipment/unit/service/ShipmentServiceTest.java
+++ b/shipment/src/test/java/com/ecommerceapp/shipment/unit/service/ShipmentServiceTest.java
@@ -11,9 +11,9 @@
import com.ecommerceapp.shipment.repository.OrderShipmentRepository;
import com.ecommerceapp.shipment.service.ShipmentService;
import com.ecommerceapp.shipment.service.kafka.MessageListenerShipment;
-import java.time.LocalDate;
import java.util.List;
import java.util.Optional;
+import org.joda.time.LocalDate;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
diff --git a/shop/pom.xml b/shop/pom.xml
index 9f034b2..d81bbab 100644
--- a/shop/pom.xml
+++ b/shop/pom.xml
@@ -8,7 +8,7 @@
com.diffplug.spotless
spotless-maven-plugin
- 2.22.1
+ 2.35.0
apply