Commit 4c1f821a authored by Noel Alonso's avatar Noel Alonso
Browse files

Añade mapstruct para poder mapear clases

parent ffee5f3c
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
		<redmic.elasticsearch-lib.version>0.10.0-feature-parentChildIndex</redmic.elasticsearch-lib.version>
		<redmic.test-utils.version>0.9.0-feature-atlasMicroservice</redmic.test-utils.version>
		<!-- OTHERS -->
		<mapstruct.version>1.3.0.Final</mapstruct.version>
	</properties>

	<dependencies>
@@ -52,6 +53,16 @@
			<version>${redmic.elasticsearch-lib.version}</version>
		</dependency>
		
		<!-- OTHERS -->

		<dependency>
			<groupId>org.mapstruct</groupId>
			<artifactId>mapstruct</artifactId>
			<version>${mapstruct.version}</version>
		</dependency>
		
		<!-- Test -->

		<dependency>
			<groupId>es.redmic.lib</groupId>
			<artifactId>test-utils</artifactId>
@@ -81,6 +92,20 @@
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<annotationProcessorPaths>
						<path>
							<groupId>org.mapstruct</groupId>
							<artifactId>mapstruct-processor</artifactId>
							<version>${mapstruct.version}</version>
						</path>
						<!-- other annotation processors -->
					</annotationProcessorPaths>
				</configuration>
			</plugin>
		</plugins>
	</build>