[JAVA-32463] Move Dozer module to libraries-data-3 (#16227)
This commit is contained in:
parent
76c1a02aa8
commit
6776be4328
|
@ -1,7 +0,0 @@
|
|||
## Dozer
|
||||
|
||||
This module contains articles about Dozer
|
||||
|
||||
### Relevant Articles:
|
||||
|
||||
- [A Guide to Mapping With Dozer](https://www.baeldung.com/dozer)
|
|
@ -1,32 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>dozer</artifactId>
|
||||
<name>dozer</name>
|
||||
|
||||
<parent>
|
||||
<groupId>com.baeldung</groupId>
|
||||
<artifactId>parent-modules</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
<version>${commons-lang3.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.sf.dozer</groupId>
|
||||
<artifactId>dozer</artifactId>
|
||||
<version>${dozer.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<properties>
|
||||
<dozer.version>5.5.1</dozer.version>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -1,13 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
|
||||
</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<root level="INFO">
|
||||
<appender-ref ref="STDOUT" />
|
||||
</root>
|
||||
</configuration>
|
|
@ -12,4 +12,5 @@ This module contains articles about libraries for data processing in Java.
|
|||
- [Introduction to Eclipse Collections](https://www.baeldung.com/eclipse-collections)
|
||||
- [Introduction to Caffeine](https://www.baeldung.com/java-caching-caffeine)
|
||||
- [Guide to Using ModelMapper](https://www.baeldung.com/java-modelmapper)
|
||||
- [A Guide to Mapping With Dozer](https://www.baeldung.com/dozer)
|
||||
- More articles: [[<-- prev]](/../libraries-data-2)
|
||||
|
|
|
@ -71,6 +71,17 @@
|
|||
<artifactId>modelmapper</artifactId>
|
||||
<version>${org.modelmapper.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
<version>${commons-lang3.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.sf.dozer</groupId>
|
||||
<artifactId>dozer</artifactId>
|
||||
<version>${dozer.version}</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
@ -96,6 +107,7 @@
|
|||
<caffeine.version>3.1.8</caffeine.version>
|
||||
<findbugs.version>3.0.2</findbugs.version>
|
||||
<org.modelmapper.version>3.2.0</org.modelmapper.version>
|
||||
<dozer.version>5.5.1</dozer.version>
|
||||
</properties>
|
||||
|
||||
</project>
|
||||
|
|
|
@ -171,7 +171,7 @@ public class DozerIntegrationTest {
|
|||
configureMapper("dozer_custom_convertor.xml");
|
||||
|
||||
String dateTime = "2007-06-26T21:22:39Z";
|
||||
long timestamp = new Long("1182882159000");
|
||||
long timestamp = Long.parseLong("1182882159000");
|
||||
|
||||
Person3 person = new Person3("Rich", dateTime);
|
||||
Personne3 person0 = mapper.map(person, Personne3.class);
|
||||
|
@ -182,7 +182,7 @@ public class DozerIntegrationTest {
|
|||
|
||||
@Test
|
||||
public void givenSrcAndDestWithDifferentFieldTypes_whenAbleToCustomConvertBidirectionally_thenCorrect() {
|
||||
long timestamp = new Long("1182882159000");
|
||||
long timestamp = Long.parseLong("1182882159000");
|
||||
Personne3 person = new Personne3("Rich", timestamp);
|
||||
configureMapper("dozer_custom_convertor.xml");
|
||||
|
2
pom.xml
2
pom.xml
|
@ -683,7 +683,6 @@
|
|||
<module>di-modules</module>
|
||||
<module>disruptor</module>
|
||||
<module>docker-modules</module>
|
||||
<module>dozer</module>
|
||||
<module>drools</module>
|
||||
<module>dubbo</module>
|
||||
<module>feign</module>
|
||||
|
@ -931,7 +930,6 @@
|
|||
<module>di-modules</module>
|
||||
<module>disruptor</module>
|
||||
<module>docker-modules</module>
|
||||
<module>dozer</module>
|
||||
<module>drools</module>
|
||||
<module>dubbo</module>
|
||||
<module>feign</module>
|
||||
|
|
Loading…
Reference in New Issue