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

    <parent>
        <groupId>org.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>9</version>
    </parent>

    <groupId>com.github.siom79.japicmp</groupId>
    <artifactId>japicmp-base</artifactId>
    <version>0.11.0</version>
    <packaging>pom</packaging>

    <name>japicmp-base</name>
    <description>japicmp is a tool/maven plugin that compares two versions of a jar archive for binary compatibility.</description>
    <url>https://github.com/siom79/japicmp</url>

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

    <developers>
        <developer>
            <id>martin.mois</id>
            <name>Martin Mois</name>
            <email>martin.mois@gmail.com</email>
        </developer>
    </developers>
	<contributors>
		<contributor>
			<name>Loki</name>
			<url>https://github.com/eldur</url>
		</contributor>
		<contributor>
			<name>Mario Zechner</name>
			<url>https://github.com/badlogic</url>
		</contributor>
		<contributor>
			<name>Daniel Norberg</name>
			<url>https://github.com/danielnorberg</url>
		</contributor>
		<contributor>
			<name>Mike Duigou</name>
			<url>https://github.com/mike-duigou</url>
		</contributor>
		<contributor>
			<name>Guy Rooms</name>
			<url>https://github.com/roomsg</url>
		</contributor>
		<contributor>
			<name>earcam</name>
			<url>https://github.com/earcam</url>
		</contributor>
		<contributor>
			<name>Robert Metzger</name>
			<url>https://github.com/rmetzger</url>
		</contributor>
		<contributor>
			<name>Francois Lasne</name>
			<url>https://github.com/LasneF</url>
		</contributor>
		<contributor>
			<name>Niklas Therning</name>
			<url>https://github.com/ntherning</url>
		</contributor>
		<contributor>
			<name>Chas Honton</name>
			<email>chas@honton.org</email>
			<url>https://github.com/chonton</url>
		</contributor>
		<contributor>
			<name>Richard Atkins</name>
			<url>https://github.com/rjatkins</url>
		</contributor>
		<contributor>
			<name>io7m</name>
			<url>https://github.com/io7m</url>
		</contributor>
		<contributor>
			<name>zhostasa</name>
			<url>https://github.com/zhostasa</url>
			<email>zhostasa@redhat.com</email>
		</contributor>
		<contributor>
			<name>twogee</name>
			<url>https://github.com/twogee</url>
		</contributor>
	</contributors>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <github.account>siom79</github.account>
        <github.project>japicmp</github.project>
        <java.source>1.7</java.source>
        <java.target>1.7</java.target>
		<maven.site.plugin.skip>false</maven.site.plugin.skip>
		<javassist.version>3.22.0-GA</javassist.version>
		<guava.version>18.0</guava.version>
    </properties>

    <modules>
        <module>japicmp</module>
        <module>japicmp-testbase</module>
        <module>japicmp-maven-plugin</module>
		<module>japicmp-ant-task</module>
    </modules>

    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.github.stefanbirkner</groupId>
            <artifactId>system-rules</artifactId>
            <version>1.12.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
            <version>1.10.19</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.javassist</groupId>
				<artifactId>javassist</artifactId>
				<version>${javassist.version}</version>
			</dependency>
			<dependency>
				<groupId>com.google.guava</groupId>
				<artifactId>guava</artifactId>
				<version>${guava.version}</version>
			</dependency>
		</dependencies>
	</dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.7.0</version>
                <configuration>
                    <source>${java.source}</source>
                    <target>${java.target}</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.5</version>
                <configuration>
                    <remoteTagging>false</remoteTagging>
                    <suppressCommitBeforeTag>false</suppressCommitBeforeTag>
					<goals>deploy</goals>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                  <quiet>true</quiet>
                </configuration>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>2.2.1</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <!-- explicitly define maven-deploy-plugin after other to force exec order -->
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>2.7</version>
                <executions>
                    <execution>
                        <id>deploy</id>
                        <phase>deploy</phase>
                        <goals>
                            <goal>deploy</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-site-plugin</artifactId>
				<version>3.3</version>
				<configuration>
					<skip>${maven.site.plugin.skip}</skip>
				</configuration>
				<dependencies>
					<dependency>
						<groupId>org.apache.maven.doxia</groupId>
						<artifactId>doxia-module-markdown</artifactId>
						<version>1.3</version>
					</dependency>
				</dependencies>
			</plugin>
        </plugins>
        <extensions>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-webdav-jackrabbit</artifactId>
                <version>1.0-beta-7</version>
            </extension>
        </extensions>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.20.1</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-javadoc-plugin</artifactId>
					<version>3.0.0-M1</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-assembly-plugin</artifactId>
					<version>3.1.0</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-jar-plugin</artifactId>
					<version>3.0.2</version>
				</plugin>
			</plugins>
		</pluginManagement>
    </build>

    <scm>
        <connection>scm:git:git@github.com:${github.account}/${github.project}.git</connection>
        <developerConnection>scm:git:git@github.com:${github.account}/${github.project}.git</developerConnection>
        <url>git@github.com:${github.account}/${github.project}.git</url>
        <tag>japicmp-base-0.11.0</tag>
    </scm>

	<distributionManagement>
		<site>
			<id>japicmp</id>
			<url>file://${user.dir}/target/deploy/site</url>
		</site>
	</distributionManagement>

    <profiles>
        <profile>
            <id>sign-artifacts</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>1.5</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
           <id>doclint-java8-disabled</id>
           <activation>
              <jdk>[1.8,)</jdk>
           </activation>
           <build>
              <plugins>
                 <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <configuration>
                       <additionalparam>-Xdoclint:none</additionalparam>
                    </configuration>
                 </plugin>
              </plugins>
           </build>
        </profile>
		<profile>
			<id>javadoc-plugin-java9</id>
			<activation>
				<jdk>[9,)</jdk>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
						<configuration>
							<additionalparam>--add-modules ALL-SYSTEM</additionalparam>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
    </profiles>
</project>
