diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index df4762b9..dbb1a95a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -7,4 +7,4 @@ on:
jobs:
build:
- uses: valitydev/java-workflow/.github/workflows/maven-service-build.yml@v2.0.11
+ uses: valitydev/java-workflow/.github/workflows/maven-service-build.yml@v3
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 6a394b04..883c16ad 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -12,7 +12,7 @@ env:
jobs:
deploy:
- uses: valitydev/java-workflow/.github/workflows/maven-service-deploy.yml@v1
+ uses: valitydev/java-workflow/.github/workflows/maven-service-deploy.yml@v3
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
mm-webhook-url: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
diff --git a/pom.xml b/pom.xml
index 128d82f1..2be7f69d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
dev.vality
service-parent-pom
- 2.1.8
+ 3.0.0
magista
@@ -32,6 +32,7 @@
postgres
postgres
mst
+ 3.0.0
@@ -73,11 +74,6 @@
lombok
provided
-
- javax.servlet
- javax.servlet-api
- provided
-
org.flywaydb
flyway-core
@@ -116,6 +112,12 @@
software.amazon.msk
aws-msk-iam-auth
+
+
+ commons-logging
+ commons-logging
+
+
@@ -123,21 +125,39 @@
dev.vality
damsel
1.611-958e5f0
+
+
+ javax.annotation
+ javax.annotation-api
+
+
dev.vality
payout-manager-proto
1.39-b079679
+
+
+ javax.annotation
+ javax.annotation-api
+
+
dev.vality
magista-proto
1.51-28d11b9
+
+
+ javax.annotation
+ javax.annotation-api
+
+
dev.vality.woody
woody-thrift
- 1.0.5
+ 2.0.1
dev.vality
@@ -151,6 +171,16 @@
dev.vality.geck
serializer
+
+
+ javax.annotation
+ javax.annotation-api
+
+
+ javax.inject
+ javax.inject
+
+
dev.vality
@@ -160,6 +190,12 @@
dev.vality
machinegun-proto
1.41-96f7f11
+
+
+ javax.annotation
+ javax.annotation-api
+
+
@@ -176,7 +212,7 @@
dev.vality
testcontainers-annotations
- 1.4.3
+ 2.0.3
test
diff --git a/src/main/java/dev/vality/magista/config/KafkaConfig.java b/src/main/java/dev/vality/magista/config/KafkaConfig.java
index b281ea41..51565e30 100644
--- a/src/main/java/dev/vality/magista/config/KafkaConfig.java
+++ b/src/main/java/dev/vality/magista/config/KafkaConfig.java
@@ -14,7 +14,7 @@
import org.springframework.kafka.config.ConcurrentKafkaListenerContainerFactory;
import org.springframework.kafka.core.DefaultKafkaConsumerFactory;
import org.springframework.kafka.listener.ContainerProperties;
-import org.springframework.kafka.listener.SeekToCurrentBatchErrorHandler;
+import org.springframework.kafka.listener.DefaultErrorHandler;
import java.util.Map;
@@ -95,7 +95,7 @@ private void configureContainerFactory(
maxPollRecords,
kafkaProperties);
containerFactory.setConsumerFactory(consumerFactory);
- containerFactory.setBatchErrorHandler(new SeekToCurrentBatchErrorHandler());
+ containerFactory.setCommonErrorHandler(new DefaultErrorHandler());
containerFactory.setBatchListener(true);
containerFactory.getContainerProperties().setAckMode(ContainerProperties.AckMode.MANUAL);
}
diff --git a/src/main/java/dev/vality/magista/config/properties/TokenGenProperties.java b/src/main/java/dev/vality/magista/config/properties/TokenGenProperties.java
index 19f801ec..3c1ad760 100644
--- a/src/main/java/dev/vality/magista/config/properties/TokenGenProperties.java
+++ b/src/main/java/dev/vality/magista/config/properties/TokenGenProperties.java
@@ -1,12 +1,12 @@
package dev.vality.magista.config.properties;
+import jakarta.validation.constraints.NotEmpty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
-import javax.validation.constraints.NotEmpty;
@Getter
@Setter
diff --git a/src/main/java/dev/vality/magista/endpoint/MerchantStatisticsServlet.java b/src/main/java/dev/vality/magista/endpoint/MerchantStatisticsServlet.java
index 02114bd0..d6f44834 100644
--- a/src/main/java/dev/vality/magista/endpoint/MerchantStatisticsServlet.java
+++ b/src/main/java/dev/vality/magista/endpoint/MerchantStatisticsServlet.java
@@ -2,10 +2,10 @@
import dev.vality.magista.MerchantStatisticsServiceSrv;
import dev.vality.woody.thrift.impl.http.THServiceBuilder;
+import jakarta.servlet.*;
+import jakarta.servlet.annotation.WebServlet;
import org.springframework.beans.factory.annotation.Autowired;
-import javax.servlet.*;
-import javax.servlet.annotation.WebServlet;
import java.io.IOException;
@WebServlet("/v3/stat")