<?xml version="1.0" encoding="UTF-8"?>
<!--

    EXPath Cryptographic Module
    Java Library providing an EXPath Cryptographic Module
    Copyright (C) 2015 The EXPath Project

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public License
    as published by the Free Software Foundation; either version 2.1
    of the License, or (at your option) any later version.

    This library 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 Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with this library; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

-->
<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>
		<groupId>org.expath</groupId>
		<artifactId>expath-parent</artifactId>
		<version>1.5.0</version>
		<relativePath />
	</parent>

	<groupId>org.expath.crypto</groupId>
	<artifactId>crypto-java</artifactId>
	<version>1.8.0</version>
	<packaging>jar</packaging>

	<name>EXPath Cryptographic Module</name>
	<description>Java Library providing an EXPath Cryptographic Module</description>

	<scm>
		<connection>scm:git:https://github.com/expath/crypto-java.git</connection>
		<developerConnection>scm:git:https://github.com/expath/crypto-java.git</developerConnection>
		<url>scm:git:https://github.com/expath/crypto-java.git</url>
		<tag>crypto-java-1.8.0</tag>
	</scm>

	<url>https://github.com/expath/crypto-java</url>
	<inceptionYear>2015</inceptionYear>

	<licenses>
		<license>
			<name>GNU Lesser General Public License version 2.1</name>
			<url>https://opensource.org/licenses/LGPL-2.1</url>
			<distribution>repo</distribution>
		</license>
	</licenses>

	<developers>
		<developer>
			<id>claudius</id>
			<name>Claudius Teodorescu</name>
			<organization>Kuberam</organization>
			<email>claudius.teodorescu@gmail.com</email>
			<url>http://kuberam.ro</url>
		</developer>
	</developers>

	<contributors>
		<contributor>
			<name>Adam Retter</name>
			<organization>Evolved Binary</organization>
			<email>adam@evolvedbinary.com</email>
			<url>https://www.evolvedbinary.com</url>
		</contributor>
	</contributors>

	<properties>
		<maven.version>3.6.0</maven.version>
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
		</dependency>
		<dependency>
			<groupId>com.google.code.findbugs</groupId>
			<artifactId>jsr305</artifactId>
		</dependency>
		<dependency>
			<groupId>jakarta.xml.bind</groupId>
			<artifactId>jakarta.xml.bind-api</artifactId>
			<version>3.0.1</version>
		</dependency>


		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-classic</artifactId>
			<version>1.2.3</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.fasterxml.uuid</groupId>
			<artifactId>java-uuid-generator</artifactId>
			<version>4.0.1</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>commons-io</groupId>
			<artifactId>commons-io</artifactId>
			<version>2.10.0</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-enforcer-plugin</artifactId>
				<version>3.0.0-M3</version>
				<executions>
					<execution>
						<id>enforce-maven</id>
						<goals>
							<goal>enforce</goal>
						</goals>
						<configuration>
							<rules>
								<requireMavenVersion>
									<version>${maven.version}</version>
								</requireMavenVersion>
							</rules>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<version>3.1.2</version>  <!-- Use 3.1.2 instead of 3.2.0 to avoid MDEP-757 - https://www.mail-archive.com/issues@maven.apache.org/msg186768.html -->
			</plugin>
			<plugin>
				<groupId>com.mycila</groupId>
				<artifactId>license-maven-plugin</artifactId>
				<version>4.1</version>
				<configuration>
					<failIfMissing>true</failIfMissing>
					<aggregate>true</aggregate>
					<strictCheck>false</strictCheck>
					<licenseSets>

						<!-- this enforces the original Copyright and License -->
						<licenseSet>
							<header>LGPL2.1-template.txt</header>
							<properties>
								<owner>${project.organization.name}</owner>
								<organization>Kuberam</organization>
								<url>${project.organization.url}</url>
							</properties>
							<excludes>
								<exclude>.github/**</exclude>
								<exclude>README.md</exclude>
								<exclude>LICENSE</exclude>
								<exclude>src/main/resources/changelog.txt</exclude>
								<exclude>src/main/resources/ro/kuberam/libs/java/crypto/lib.properties</exclude>
								<exclude>src/test/resources/**/*.txt</exclude>
								<exclude>src/test/resources/**/*.xml</exclude>
								<exclude>**/*.cer</exclude>
								<exclude>**/*.ks</exclude>
								<exclude>**/*.key</exclude>
								<exclude>**/*.pub</exclude>
								<exclude>**/*.pkcs8</exclude>

								<!-- files now authored by the EXPath project (see below) -->
								<exclude>pom.xml</exclude>
								<exclude>src/test/java/ro/kuberam/libs/java/crypto/TestUtils.java</exclude>
								<exclude>src/test/java/ro/kuberam/libs/java/crypto/digest/HashBinaryTest.java</exclude>
								<exclude>src/test/java/ro/kuberam/libs/java/crypto/digest/HashBinaryWithWrongAlgorithmTest.java</exclude>
								<exclude>src/test/java/ro/kuberam/libs/java/crypto/digest/HashLargeBinaryTest.java</exclude>
								<exclude>src/test/java/ro/kuberam/libs/java/crypto/digest/HashLargeStringTest.java</exclude>
								<exclude>src/test/java/ro/kuberam/libs/java/crypto/digest/HashStringTest.java</exclude>
								<exclude>src/test/java/ro/kuberam/libs/java/crypto/digest/HashStringWithWrongAlgorithmTest.java</exclude>
								<exclude>src/test/java/ro/kuberam/libs/java/crypto/digest/HMACBinaryTest.java</exclude>
								<exclude>src/test/java/ro/kuberam/libs/java/crypto/digest/HMACLargeBinaryTest.java</exclude>
								<exclude>src/test/java/ro/kuberam/libs/java/crypto/digest/HMACLargeStringTest.java</exclude>
								<exclude>src/test/java/ro/kuberam/libs/java/crypto/digest/HMACStringTest.java</exclude>
							</excludes>
						</licenseSet>

						<!-- this enforces the EXPath Copyright and License on newer files -->
						<licenseSet>
							<header>LGPL2.1-template.txt</header>
							<properties>
								<owner>${project.organization.name}</owner>
								<organization>${project.organization.name}</organization>
								<url>${project.organization.url}</url>
							</properties>
							<includes>
								<include>pom.xml</include>
								<include>src/test/java/ro/kuberam/libs/java/crypto/TestUtils.java</include>
								<include>src/test/java/ro/kuberam/libs/java/crypto/digest/HashBinaryTest.java</include>
								<include>src/test/java/ro/kuberam/libs/java/crypto/digest/HashBinaryWithWrongAlgorithmTest.java</include>
								<include>src/test/java/ro/kuberam/libs/java/crypto/digest/HashLargeBinaryTest.java</include>
								<include>src/test/java/ro/kuberam/libs/java/crypto/digest/HashLargeStringTest.java</include>
								<include>src/test/java/ro/kuberam/libs/java/crypto/digest/HashStringTest.java</include>
								<include>src/test/java/ro/kuberam/libs/java/crypto/digest/HashStringWithWrongAlgorithmTest.java</include>
								<include>src/test/java/ro/kuberam/libs/java/crypto/digest/HMACBinaryTest.java</include>
								<include>src/test/java/ro/kuberam/libs/java/crypto/digest/HMACLargeBinaryTest.java</include>
								<include>src/test/java/ro/kuberam/libs/java/crypto/digest/HMACLargeStringTest.java</include>
								<include>src/test/java/ro/kuberam/libs/java/crypto/digest/HMACStringTest.java</include>
							</includes>
						</licenseSet>
					</licenseSets>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-site-plugin</artifactId>
				<version>3.9.1</version>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-project-info-reports-plugin</artifactId>
				<version>3.1.2</version>
				<configuration>
					<dependencyDetailsEnabled>false</dependencyDetailsEnabled>  <!-- TODO(AR) disabled due to slow `mvn site` build times -->
				</configuration>
			</plugin>
		</plugins>
	</build>

	<reporting>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-report-plugin</artifactId>
				<version>3.0.0-M5</version>
			</plugin>
		</plugins>
	</reporting>

	<pluginRepositories>
		<pluginRepository>
			<id>clojars.org</id>
			<url>https://clojars.org/repo</url>
		</pluginRepository>
	</pluginRepositories>

</project>
