<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (C) 2007-2020 Crafter Software Corporation. All Rights Reserved.
  ~
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License version 3 as published by
  ~ the Free Software Foundation.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.
  -->

<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>
	<groupId>org.craftercms</groupId>
	<artifactId>craftercms-spring-boot</artifactId>
	<version>4.0.0-rc1E</version><!-- craftercms version flag -->

	<name>Crafter CMS - Springboot</name>
	<description>Crafter CMS Parent POM - Springboot</description>
	<packaging>pom</packaging>
	<url>https://craftercms.org</url>

	<organization>
		<name>CrafterCMS</name>
		<url>https://craftercms.org</url>
	</organization>

	<licenses>
		<license>
			<name>GNU GENERAL PUBLIC LICENSE, Version 3</name>
			<url>http://www.gnu.org/licenses/gpl-3.0.html</url>
			<distribution>repo</distribution>
		</license>
	</licenses>
    
	<developers>
	        <developer>
        	    <id>sumerjabri</id>
	            <name>Sumer Jabri</name>
	            <email>sumer.jabri@craftercms.org</email>
	        </developer>
	</developers>

	<scm>
		<connection>scm:git:git://github.com/craftercms/craftercms</connection>
		<developerConnection>scm:git:git://github.com/craftercms/craftercms</developerConnection>
		<url>scm:git:git://github.com/craftercms/craftercms</url>
	</scm>

	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.6.1</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>

	<properties>
		<!-- Version Numbers -->
		<commons.configuration.version>2.7</commons.configuration.version>
		<commons.csv.version>1.9.0</commons.csv.version>
		<commons.io.version>2.11.0</commons.io.version>
		<jgit.version>5.13.0.202109080827-r</jgit.version>
		<javax.mail.version>1.6.2</javax.mail.version>
		<handlebars.version>4.3.0</handlebars.version>
		<sardine.version>5.10</sardine.version>
		<xerces.version>2.12.1</xerces.version>
		<java.version>11</java.version>
		<hazelcast.version>4.0</hazelcast.version>
		<hazelcast.kubernetes.version>2.0.1</hazelcast.kubernetes.version>
		<script.security.version>${project.version}</script.security.version>

		<!-- Override property setup by Spring Boot Parent -->
		<jackson.version>2.13.0</jackson.version>
		<jackson.databind.version>2.13.0</jackson.databind.version>
		<aws.version>1.12.92</aws.version>
		<box.sdk.version>2.58.0</box.sdk.version>
		<elasticsearch.version>7.7.1</elasticsearch.version>
		<tomcat.version>9.0.53</tomcat.version>
		<mariadb.version>10.4.20</mariadb.version>
		<groovy.version>3.0.9</groovy.version>
		<apache.ivy>2.5.0</apache.ivy>
		<log4j2.version>2.17.1</log4j2.version>

		<!-- build -->
		<maven.javadoc.version>3.2.0</maven.javadoc.version>
		<maven.source.version>3.2.1</maven.source.version>
		<maven.jar.version>3.2.0</maven.jar.version>
		<buildnumber.maven.version>1.4</buildnumber.maven.version>
		<maven.deploy.version>3.0.0-M1</maven.deploy.version>
		<maven.gpg.version>1.6</maven.gpg.version>
		<maven.antrun.version>1.8</maven.antrun.version>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
		<nexus.staging.maven.version>1.6.7</nexus.staging.maven.version>
	</properties>

	<dependencyManagement>
		<dependencies>
			<!-- AWS SDK -->
			<dependency>
				<groupId>com.amazonaws</groupId>
				<artifactId>aws-java-sdk-bom</artifactId>
				<version>${aws.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<profiles>
		<profile>
			<id>release-sign-artifacts</id>
			<activation>
				<property>
					<name>performRelease</name>
					<value>true</value>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-deploy-plugin</artifactId>
						<version>${maven.deploy.version}</version>
						<configuration>
							<skip>true</skip>
						</configuration>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>${maven.gpg.version}</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.sonatype.plugins</groupId>
						<artifactId>nexus-staging-maven-plugin</artifactId>
						<version>${nexus.staging.maven.version}</version>
						<executions>
							<execution>
								<id>default-deploy</id>
								<phase>deploy</phase>
								<goals>
									<goal>deploy</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<serverId>sonatype-staging</serverId>
							<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
							<autoReleaseAfterClose>true</autoReleaseAfterClose>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

	<repositories>
		<repository>
			<id>sonatype-snapshots</id>
			<name>Sonatype Snapshot Repository</name>
			<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
				<updatePolicy>always</updatePolicy>
				<checksumPolicy>fail</checksumPolicy>
			</snapshots>
		</repository>
	</repositories>

	<distributionManagement>
		<snapshotRepository>
			<id>sonatype-snapshots</id>
			<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
		<repository>
			<id>sonatype-staging</id>
			<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
		</repository>
	</distributionManagement>
</project>
