<?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/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<parent>
		<artifactId>flexio-commons</artifactId>
		<groupId>io.flexio.commons</groupId>
		<version>1.7.0</version>
	</parent>

	<artifactId>flexio-microsoft-excel-client</artifactId>
	<name>${project.groupId}:${project.artifactId}</name>

	<dependencies>
		<dependency>
			<groupId>org.codingmatters.rest</groupId>
			<artifactId>cdm-rest-client-api</artifactId>
		</dependency>
		<dependency>
			<groupId>org.codingmatters.rest</groupId>
			<artifactId>cdm-rest-client-okhttp</artifactId>
		</dependency>
		<dependency>
			<groupId>org.codingmatters.value.objects</groupId>
			<artifactId>cdm-value-objects-values</artifactId>
		</dependency>
		<dependency>
			<groupId>org.codingmatters.poom</groupId>
			<artifactId>poom-services-logging</artifactId>
		</dependency>
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-databind</artifactId>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.codingmatters.rest</groupId>
				<artifactId>cdm-rest-maven-plugin</artifactId>
				<executions>
					<execution>
						<id>api-types-gen</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>generate-api-types</goal>
						</goals>
						<configuration>
							<destination-package>io.flexio.commons.microsoft.excel.api</destination-package>
							<api-spec-file>${project.basedir}/src/main/resources/microsoft-excel.raml</api-spec-file>
						</configuration>
					</execution>

					<execution>
						<id>api-client-gen</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>generate-all-clients</goal>
						</goals>
						<configuration>
							<root-package>io.flexio.commons.microsoft.excel</root-package>
							<api-spec-file>${project.basedir}/src/main/resources/microsoft-excel.raml</api-spec-file>
							<vendor>flexio-corp</vendor>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<executions>
					<execution>
						<phase>generate-sources</phase>
						<goals>
							<goal>add-source</goal>
						</goals>
						<configuration>
							<sources>
								<source>target/generated-sources</source>
							</sources>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>