From be0261fdf0df0e4d483a1a0c15cf75d725168fc0 Mon Sep 17 00:00:00 2001
From: Baikov Dmitrii <44803026+D-Baykov@users.noreply.github.com>
Date: Wed, 10 Jul 2024 14:05:22 +0300
Subject: [PATCH] [1.0.0] Bump the lib to Spring 3 (#81)
---
.github/workflows/build.yml | 2 +-
.github/workflows/deploy.yml | 2 +-
pom.xml | 27 +++++++++--------
.../controller/ThreeDsCallbackController.java | 6 ++--
.../lib/serde/ParametersDeserializer.java | 7 ++---
.../lib/service/TagManagementService.java | 25 ++--------------
.../lib/service/TagManagementServiceImpl.java | 30 +++++++++++++++++++
.../lib/service/ThreeDsAdapterService.java | 5 ++--
.../factory/IntentResultQrPaymentFactory.java | 7 +++--
.../flow/lib/servlet/AdapterServlet.java | 9 +++---
.../lib/flow/AbstractGenerateTokenTest.java | 4 +--
.../flow/lib/flow/AbstractPaymentTest.java | 4 +--
.../flow/lib/flow/config/HandlerConfig.java | 8 ++---
.../config/TomcatEmbeddedConfiguration.java | 10 +++----
.../QrRedirectWithPollingDsFlowConfig.java | 8 +----
.../redirect/PaymentSuccess3dsTest.java | 6 ++++
...SimpleRedirectWithPollingDsFlowConfig.java | 8 +----
17 files changed, 87 insertions(+), 81 deletions(-)
create mode 100644 src/main/java/dev/vality/adapter/flow/lib/service/TagManagementServiceImpl.java
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 0ff11dc..c412bb0 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -7,4 +7,4 @@ on:
jobs:
build:
- uses: valitydev/base-workflow/.github/workflows/maven-library-build.yml@v1
+ uses: valitydev/base-workflow/.github/workflows/maven-library-build.yml@v3
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 4a3050f..1437af1 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -8,7 +8,7 @@ on:
jobs:
deploy:
- uses: valitydev/base-workflow/.github/workflows/maven-library-deploy.yml@v1
+ uses: valitydev/base-workflow/.github/workflows/maven-library-deploy.yml@v3
secrets:
server-username: ${{ secrets.OSSRH_USERNAME }}
server-password: ${{ secrets.OSSRH_TOKEN }}
diff --git a/pom.xml b/pom.xml
index 6c86235..1124425 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,12 +7,12 @@
dev.vality
library-parent-pom
- 1.0.2
+ 2.0.2
adapter-flow-lib
- 0.2.6
+ 1.0.0
jar
adapter-flow-lib
@@ -44,7 +44,7 @@
${env.REGISTRY}
UTF-8
UTF-8
- 1.0.4
+ 2.0.0
1.20-be9cdeb
1.614-3df747f
3.12.0
@@ -54,14 +54,14 @@
1.2.11
7.1.1
2.14.0
- 5.8.2
+ 5.10.3
2.22.2
4.0.1
2.0.1.Final
- 5.3.19
- 2.6.7
+ 6.1.6
+ 3.3.1
1.66-01353ce
- 1.1.2
+ 2.0.0
@@ -90,12 +90,6 @@
validation-api
${validation-api.version}
-
- javax.servlet
- javax.servlet-api
- ${javax.servlet-api.version}
- provided
-
org.apache.commons
commons-lang3
@@ -223,6 +217,13 @@
maven-surefire-plugin
${maven-surefire-plugin.version}
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ true
+
+
diff --git a/src/main/java/dev/vality/adapter/flow/lib/controller/ThreeDsCallbackController.java b/src/main/java/dev/vality/adapter/flow/lib/controller/ThreeDsCallbackController.java
index 98b8e9a..4027f64 100644
--- a/src/main/java/dev/vality/adapter/flow/lib/controller/ThreeDsCallbackController.java
+++ b/src/main/java/dev/vality/adapter/flow/lib/controller/ThreeDsCallbackController.java
@@ -1,15 +1,14 @@
package dev.vality.adapter.flow.lib.controller;
import dev.vality.adapter.flow.lib.service.ThreeDsAdapterService;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
@Slf4j
@RestController
@RequestMapping({"/${server.rest.endpoint}"})
@@ -29,5 +28,4 @@ public class ThreeDsCallbackController {
HttpServletResponse servletResponse) {
return this.threeDsAdapterService.receiveRecurrentIncomingParameters(servletRequest, servletResponse);
}
-
}
\ No newline at end of file
diff --git a/src/main/java/dev/vality/adapter/flow/lib/serde/ParametersDeserializer.java b/src/main/java/dev/vality/adapter/flow/lib/serde/ParametersDeserializer.java
index f780870..be5da94 100644
--- a/src/main/java/dev/vality/adapter/flow/lib/serde/ParametersDeserializer.java
+++ b/src/main/java/dev/vality/adapter/flow/lib/serde/ParametersDeserializer.java
@@ -3,9 +3,9 @@ package dev.vality.adapter.flow.lib.serde;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import dev.vality.adapter.flow.lib.exception.DeserializationException;
+import jakarta.servlet.http.HttpServletRequest;
import lombok.RequiredArgsConstructor;
-import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
@@ -24,8 +24,8 @@ public class ParametersDeserializer implements Deserializer