<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
         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>
		<groupId>cl.kanopus</groupId>
		<artifactId>kanopus-boot-parent</artifactId>
		<version>4.03.0</version>
	</parent>

	<groupId>cl.kanopus.tool</groupId>
	<artifactId>ktool-deploy-sql</artifactId>

	<name>ktool-deploy-sql</name>
	<description>Kanopus tool used to run sql script on database</description>

	<scm>
		<connection>scm:git:https://github.com/godheaven/ktool-deploy-sql.git</connection>
		<developerConnection>scm:git:https://github.com/godheaven/ktool-deploy-sql.git</developerConnection>
		<url>https://github.com/godheaven/ktool-deploy-sql</url>
		<tag>HEAD</tag>
	</scm>

	<properties>
		<start-class>cl.kanopus.tool.deploysql.Application</start-class>
		<maven.test.skip>false</maven.test.skip>
		<license.skip>false</license.skip>
	</properties>

	<profiles>

		<!-- ############## [Local] #####################-->
		<profile>
			<id>local</id>
			<build>
				<resources>
					<resource>
						<directory>src/main/resources</directory>
					</resource>
					<resource>
						<directory>resources/local</directory>
					</resource>
				</resources>
			</build>
		</profile>

		<!-- ############## [Zipped] #####################-->
		<profile>
			<id>package-zip</id>
			<properties>
				<skip.tests>true</skip.tests>
			</properties>
			<build>
				<finalName>ktool-deploy-sql</finalName>
				<resources>
					<resource>
						<directory>src/main/resources</directory>
					</resource>
				</resources>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-assembly-plugin</artifactId>
						<executions>
							<execution>
								<id>make-dist-zip</id>
								<phase>package</phase>
								<goals>
									<goal>single</goal>
								</goals>
								<configuration>
									<outputDirectory>./</outputDirectory>
									<descriptors>
										<descriptor>resources/local/zip.xml</descriptor>
									</descriptors>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>

	</profiles>


	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter</artifactId>
		</dependency>

		<dependency>
			<groupId>cl.kanopus.util</groupId>
			<artifactId>klib-deploy-sql</artifactId>
		</dependency>

		<dependency>
			<groupId>org.postgresql</groupId>
			<artifactId>postgresql</artifactId>
		</dependency>

		<dependency>
			<groupId>com.microsoft.sqlserver</groupId>
			<artifactId>mssql-jdbc</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>com.oracle.database.jdbc</groupId>
			<artifactId>ojdbc8</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>com.ibm.db2</groupId>
			<artifactId>jcc</artifactId>
			<scope>provided</scope>
		</dependency>

	</dependencies>

</project>
