<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2018-2019 Intel Corporation
Copyright (c) 2015-2017 Intel Deutschland GmbH
Copyright (c) 2011-2015, Intel Mobile Communications GmbH

This file is part of the Inheritance plug-in for Jenkins.

The Inheritance plug-in 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 in version 3
of the License

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, see <http://www.gnu.org/licenses />.
-->
<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.jenkins-ci.plugins</groupId>
		<artifactId>plugin</artifactId>
		<!--
			Note: The jenkins parent version is no longer bound to this pom.
			Instead, the version is now selected via the "jenkins.version"
			property.
		-->
		<version>4.18</version>
	</parent>
	
	<name>Project Inheritance Plugin</name>
	<groupId>hudson.plugins</groupId>
	<artifactId>project-inheritance</artifactId>
	<version>21.04.03</version>
	<packaging>hpi</packaging>
	<!-- Link to wiki -->
	<url>https://wiki.jenkins-ci.org/display/JENKINS/inheritance-plugin</url>
	
	<properties>
		<java.level>8</java.level>
		<jenkins.version>2.277.1</jenkins.version>
		
		<animal-sniffer-maven-plugin.version>1.16</animal-sniffer-maven-plugin.version>
		<diffutils.version>1.2.1</diffutils.version>
		<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
		<matrix-project.version>1.18</matrix-project.version>
		<rebuild.version>1.31</rebuild.version>
		
		<slf4j-api.version>1.7.30</slf4j-api.version>
		<jcl-over-slf4j.version>1.7.30</jcl-over-slf4j.version>
		<log4j-over-slf4j.version>1.7.30</log4j-over-slf4j.version>
		<slf4j-api.version>1.7.30</slf4j-api.version>
		<slf4j-jdk14.version>1.7.30</slf4j-jdk14.version>
	</properties>

	<!-- Load the needed dependencies - keep this clean for OSS release -->
	<dependencies>
		<dependency>
			<groupId>com.sonyericsson.hudson.plugins.rebuild</groupId>
			<artifactId>rebuild</artifactId>
			<version>${rebuild.version}</version>
		</dependency>
		
		<dependency>
			<groupId>com.googlecode.java-diff-utils</groupId>
			<artifactId>diffutils</artifactId>
			<version>${diffutils.version}</version>
		</dependency>
		
		<!--
			Needed for test-cases by the rebuild plugin (and others), that do
			not declare it, since it used to be implied in Jenkins < 2.2, but is now optional. The scope is "test", since it's not actually needed for compilation, only running tests.
		-->
		<dependency>
			<groupId>org.jenkins-ci.plugins</groupId>
			<artifactId>matrix-project</artifactId>
			<version>${matrix-project.version}</version>
			<scope>test</scope>
			<exclusions>
				<exclusion>
					<groupId>org.jenkins-ci</groupId>
					<artifactId>symbol-annotation</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		
		<!-- Plugin versions included to avoid maven upper-bound version errors -->
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>${slf4j-api.version}</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>jcl-over-slf4j</artifactId>
			<version>${jcl-over-slf4j.version}</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-jdk14</artifactId>
			<version>${slf4j-jdk14.version}</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>log4j-over-slf4j</artifactId>
			<version>${log4j-over-slf4j.version}</version>
		</dependency>
	</dependencies>


	<!-- -->
	<build>
		<plugins>
			<!-- Require at least Java 8 -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>${maven-compiler-plugin.version}</version>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
				</configuration>
			</plugin>

		
			<!-- Must upgrade animal-sniffer to deal with Java 9 without crash -->
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>animal-sniffer-maven-plugin</artifactId>
				<version>${animal-sniffer-maven-plugin.version}</version>
				<configuration>
					<signature>
						<groupId>org.codehaus.mojo.signature</groupId>
						<artifactId>java18</artifactId>
						<version>1.0</version>
					</signature>
				</configuration>
			</plugin>
			
			<!-- Disable spotbugs plugin, for now -->
			<plugin>
				<groupId>com.github.spotbugs</groupId>
				<artifactId>spotbugs-maven-plugin</artifactId>
				<configuration>
					<skip>true</skip>
				</configuration>
			</plugin>
			
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>3.2.0</version>
				<executions>
					<execution>
						<id>attach-javadocs</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<source>8</source>
					<doclint>none</doclint>
				</configuration>
			</plugin>
		</plugins>
	</build>


	<!-- Settings needed for publishing -->
	<developers>
		<developer>
			<!-- ID must be the jenkins-ci.org Wiki/JIRA account -->
			<id>mhschroe</id>
			<name>Martin Schroeder</name>
			<!-- Do note: The address below is a mailing list -->
			<email>DL-SMT-WCM2-TC-Plugins@intel.com</email>
		</developer>
	</developers>

	<!-- SCM settings for release to GitHub -->
	<scm>
		<url>https://github.com/i-m-c/jenkins-inheritance-plugin</url>
		<connection>scm:git:github.com/i-m-c/jenkins-inheritance-plugin.git</connection>
		<developerConnection>scm:git:git@github.com:i-m-c/jenkins-inheritance-plugin.git</developerConnection>
	  <tag>project-inheritance-21.04.03</tag>
  </scm>
	
	<!-- Set up repository locations for Jenkins and its plugins -->
	<repositories>
		<repository>
			<id>repo.jenkins-ci.org</id>
			<url>http://repo.jenkins-ci.org/public/</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</repository>
	</repositories>
	
	<pluginRepositories>
		<pluginRepository>
			<id>repo.jenkins-ci.org</id>
			<url>http://repo.jenkins-ci.org/public/</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</pluginRepository>
	</pluginRepositories>
</project>
