<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>

	<!-- Informations -->
	<groupId>fr.neatmonster</groupId>
	<artifactId>nocheatplus</artifactId>
	<name>NoCheatPlus</name>
	<version>3.16.1-SNAPSHOT</version>
	<description>Detect and fight the exploitation of various flaws/bugs in Minecraft.</description>
	<url>https://dev.bukkit.org/projects/nocheatplus</url>

	<packaging>jar</packaging>

	<dependencies>
		<dependency>
			<groupId>fr.neatmonster</groupId>
			<artifactId>ncpplugin</artifactId>
			<version>1.1-SNAPSHOT</version>
		</dependency>
	</dependencies>

	<distributionManagement>
		<repository>
			<id>md_5-releases</id>
			<url>https://repo.md-5.net/content/repositories/releases/</url>
		</repository>
		<snapshotRepository>
			<id>md_5-snapshots</id>
			<url>https://repo.md-5.net/content/repositories/snapshots/</url>
		</snapshotRepository>
	</distributionManagement>

	<!-- Building -->
	<build>
		<defaultGoal>clean package</defaultGoal>
		<directory>../target</directory> <!-- Build it one level up, because it is the one we care about -->
		<finalName>NoCheatPlus</finalName>
		<resources>
			<resource>
				<targetPath>.</targetPath>
				<filtering>true</filtering>
				<directory>..</directory>
				<includes>
					<include>LICENSE.txt</include>
				</includes>
			</resource>
			<!-- plugin.yml here to fill in the correct content. -->
			<resource>
				<targetPath>.</targetPath>
				<filtering>true</filtering>
				<directory>../NCPPlugin/src/main/resources</directory>
				<includes>
					<include>plugin.yml</include>
				</includes>
			</resource>
		</resources>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-shade-plugin</artifactId>
				<version>1.4</version>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>shade</goal>
						</goals>
						<configuration>
							<artifactSet>
								<includes>
									<include>fr.neatmonster:*</include>
								</includes>
								<!-- Clearly not sure about excludes... -->
								<!-- <excludes> <exclude>fr.neatmonster:nocheatplus-parent</exclude> 
									</excludes> -->
							</artifactSet>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-deploy-plugin</artifactId>
				<configuration>
					<!-- <skip>true</skip> -->
				</configuration>
			</plugin>
		</plugins>
	</build>

</project>