refactor pom (#18)

This commit is contained in:
Anatoly Karlov 2022-07-25 17:24:45 +07:00 committed by GitHub
parent bcc30f8904
commit 07de418c8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 52 additions and 20 deletions

42
pom.xml
View File

@ -11,7 +11,7 @@
</parent>
<artifactId>adapter-bank-payout-spring-boot-starter</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<packaging>jar</packaging>
<name>Adapter-bank-payout-spring-boot-starter</name>
@ -40,14 +40,7 @@
<properties>
<damsel.version>1.563-d384c12</damsel.version>
<cds-proto.version>1.66-01353ce</cds-proto.version>
<spring-boot.version>2.6.7</spring-boot.version>
<woody.version>1.0.4</woody.version>
<geck.version>0.0.1</geck.version>
<lombok.version>1.18.24</lombok.version>
<slf4j-api.version>1.7.36</slf4j-api.version>
<javax.servlet-api.version>4.0.1</javax.servlet-api.version>
<adapter-common-lib.version>1.1.1</adapter-common-lib.version>
<spring-boot.version>2.7.0</spring-boot.version>
</properties>
<dependencies>
@ -55,19 +48,25 @@
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${javax.servlet-api.version}</version>
<version>4.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j-api.version}</version>
<version>1.7.36</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<version>1.18.24</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.1.Final</version>
<scope>provided</scope>
</dependency>
@ -112,16 +111,21 @@
</dependency>
<!--vality-->
<dependency>
<groupId>dev.vality</groupId>
<artifactId>adapter-common-lib</artifactId>
<version>1.1.3</version>
</dependency>
<dependency>
<groupId>dev.vality.woody</groupId>
<artifactId>woody-thrift</artifactId>
<version>${woody.version}</version>
<version>1.0.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>dev.vality.geck</groupId>
<artifactId>serializer</artifactId>
<version>${geck.version}</version>
<version>0.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
@ -130,11 +134,6 @@
<version>${damsel.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>dev.vality</groupId>
<artifactId>adapter-common-lib</artifactId>
<version>${adapter-common-lib.version}</version>
</dependency>
<!-- test -->
<dependency>
@ -144,12 +143,15 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
<testSourceDirectory>${project.basedir}/src/test/java</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<version>3.0.0-M6</version>
</plugin>
</plugins>
</build>

View File

@ -0,0 +1,14 @@
package dev.vality.adapter.bank.payout.spring.boot.starter.config;
import dev.vality.adapter.common.component.RequestLoggingAspect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class RequestLoggingAspectConfiguration {
@Bean
public RequestLoggingAspect requestLoggingAspect() {
return new RequestLoggingAspect();
}
}

View File

@ -0,0 +1,16 @@
package dev.vality.adapter.bank.payout.spring.boot.starter.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import dev.vality.adapter.common.component.SimpleObjectMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class SimpleObjectMapperConfiguration {
@Bean
public ObjectMapper objectMapper() {
return new SimpleObjectMapper().createSimpleObjectMapperFactory();
}
}