<?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>

    <groupId>io.continual</groupId>
    <artifactId>java-template-engine</artifactId>
    <version>1.3</version>
    <packaging>jar</packaging>

    <name>Java Template Engine</name>
    <description>
        Golang-like template engine for Java. Implements data-driven templates for generating textual output.
        Forked from https://github.com/proninyaroslav/java-template-engine.
    </description>
    <url>https://bitbucket.org/continualio/java-template-engine</url>

    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

	<scm>
		<url>https://bitbucket.org/continualio/java-template-engine</url>
		<connection>scm:git:https://bitbucket.org/continualio/java-template-engine.git</connection>
		<developerConnection>scm:git:https://bitbucket.org/continualio/java-template-engine.git</developerConnection>
	</scm>

    <developers>
        <developer>
            <id>proninyaroslav</id>
            <name>Yaroslav Pronin</name>
            <email>proninyaroslav@mail.ru</email>
            <url>https://github.com/proninyaroslav/</url>
        </developer>
		<developer>
			<name>Continual.io Project Developers</name>
			<email>developers@continual.io</email>
			<organization>ContinualIO</organization>
			<organizationUrl>https://continual.io</organizationUrl>
		</developer>
    </developers>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.11.0</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>3.5.0</version>
				<executions>
					<execution>
						<id>attach-javadocs</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.5.3</version>
                <configuration>
                    <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
                </configuration>
            </plugin>

			<plugin>
				<groupId>org.sonatype.plugins</groupId>
				<artifactId>nexus-staging-maven-plugin</artifactId>
				<version>1.6.13</version>
				<extensions>true</extensions>
				<configuration>
					<serverId>cioossrh</serverId>
					<nexusUrl>https://oss.sonatype.org/</nexusUrl>
					<autoReleaseAfterClose>true</autoReleaseAfterClose>
				</configuration>
			</plugin>
        </plugins>
    </build>

    <profiles>
		<profile>
			<id>release</id>
			<activation>
				<property>
					<name>performRelease</name>
					<value>true</value>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>3.1.0</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
								<configuration>
									<keyname>Continual.io</keyname>
									<passphraseServerId>ciogpg</passphraseServerId>
								</configuration>
							</execution>
						</executions>
					</plugin>

					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<version>3.3.0</version>
						<executions>
							<execution>
								<id>attach-sources</id>
								<goals>
									<goal>jar-no-fork</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
        </profile>

    </profiles>

	<distributionManagement>
		<snapshotRepository>
			<id>cioRepoWrite</id>
			<url>${cioRepoWriteUrl}</url>
		</snapshotRepository>
		<repository>
			<id>cioRepoWrite</id>
			<url>${cioRepoWriteUrl}</url>
		</repository>
	</distributionManagement>

</project>
