<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>com.github.francesco149</groupId>
	<artifactId>koohii</artifactId>
	<version>2.1.0</version>
	<packaging>jar</packaging>

	<name>koohii</name>
	<description>osu! pp and difficulty calculator, pure java implementation of https://github.com/Francesco149/oppai-ng</description>
	<url>https://github.com/Francesco149/koohii</url>
	<developers>
		<developer>
			<name>Franc[e]sco</name>
			<email>lolisamurai@tfwno.gf</email>
			<url>https://github.com/Francesco149</url>
		</developer>
	</developers>
	<scm>
		<developerConnection>scm:git:git@github.com:Francesco149/koohii.git</developerConnection>
		<connection>scm:git:git@github.com:Francesco149/koohii.git</connection>
		<url>https://github.com/Francesco149/koohii</url>
		<tag>2.1.0</tag>
	</scm>
	<distributionManagement>
		<snapshotRepository>
			<id>ossrh</id>
			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
		<repository>
			<id>ossrh</id>
			<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
		</repository>
	</distributionManagement>
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>
	<licenses>
		<license>
			<name>Public domain (Unlicense)</name>
			<url>http://unlicense.org</url>
		</license>
	</licenses>

	<profiles>
		<profile>
			<id>release-and-sign</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>1.6</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

	<build>
		<testResources>
			<testResource>
				<directory>target/generated-test-resources/</directory>
			</testResource>
		</testResources>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.7.0</version>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
					<encoding>UTF-8</encoding>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>testCompile</goal>
						</goals>
						<id>default-testCompile</id>
						<phase>test-compile</phase>
						<configuration>
							<source>1.6</source>
							<target>1.6</target>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-release-plugin</artifactId>
				<version>2.5.3</version>
				<configuration>
					<tagNameFormat>@{project.version}</tagNameFormat>
					<releaseProfiles>release-and-sign</releaseProfiles>
					<useReleaseProfile>false</useReleaseProfile>
					<goal>deploy</goal>
				</configuration>
			</plugin>

			<plugin>
				<groupId>com.googlecode.maven-download-plugin</groupId>
				<artifactId>download-maven-plugin</artifactId>
				<version>1.3.0</version>
				<executions>
					<execution>
						<phase>generate-test-resources</phase>
						<goals>
							<goal>wget</goal>
						</goals>
						<configuration>
							<url>https://github.com/Francesco149/oppai-ng/releases/download/4.0.0/test_suite_2021-02-03.tar.gz</url>
							<outputFileName>test_suite.tar.gz</outputFileName>
							<sha512>820de45dd21dfa3c7363e2d4e09ccc20b507d93791cb1f8800381fff95a712dca4b4cae9a92b3ef58dd51b2acd4db5272fd6c29644095b79d3a79803c536178a</sha512>
							<outputDirectory>${project.build.directory}/generated-test-resources</outputDirectory>
							<unpack>true</unpack>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<executions>
					<execution>
						<id>attach-sources</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<configuration>
					<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
					<source>8</source>
				</configuration>
				<executions>
					<execution>
						<id>attach-javadocs</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.12</version>
			<scope>test</scope>
		</dependency>
	</dependencies>
</project>
