<?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/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<parent>
		<groupId>org.jenkins-ci.plugins</groupId>
		<artifactId>plugin</artifactId>
		<version>2.23</version>
	</parent>

	<properties>
		<jenkins.version>2.1</jenkins.version>
		<hpi-plugin.version>1.115</hpi-plugin.version>
		<jenkins-test-harness.version>2.19</jenkins-test-harness.version>
		<findbugs.failOnError>false</findbugs.failOnError>
	</properties>

	<groupId>de.wellnerbou.jenkins</groupId>
	<artifactId>git-changelog</artifactId>
	<version>1.45</version>
	<packaging>hpi</packaging>

	<name>Git Changelog</name>
	<description>Plugin creating changelogs based on Git's history between two tags or revisions</description>
	<url>https://wiki.jenkins-ci.org/display/JENKINS/Git+Changelog+Plugin</url>

	<ciManagement>
		<system>Jenkins</system>
		<url>https://jenkins.ci.cloudbees.com/job/plugins/job/git-changelog-plugin/</url>
	</ciManagement>

	<issueManagement>
		<system>Jira</system>
		<url>https://issues.jenkins-ci.org/</url>
		<!-- All issues for this plugin: https://issues.jenkins-ci.org/issues/?jql=project%20%3D%20JENKINS%20AND%20component%20%3D%20git-changelog-plugin -->
	</issueManagement>

	<distributionManagement>
		<repository>
			<uniqueVersion>false</uniqueVersion>
			<id>maven.jenkins-ci.org</id>
			<url>https://repo.jenkins-ci.org/releases/</url>
		</repository>
		<snapshotRepository>
			<id>maven.jenkins-ci.org</id>
			<url>https://repo.jenkins-ci.org/snapshots/</url>
		</snapshotRepository>
	</distributionManagement>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.7</source>
					<target>1.7</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>se.bjurr.gitchangelog</groupId>
				<artifactId>git-changelog-maven-plugin</artifactId>
				<version>1.40</version>
				<executions>
					<execution>
						<id>GenerateGitChangelog</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>git-changelog</goal>
						</goals>
						<configuration>
							<readableTagName>-([^-]+?)$</readableTagName>
							<gitHubApi>https://api.github.com/repos/jenkinsci/git-changelog-plugin</gitHubApi>
							<gitHubToken>${GITHUB_OAUTH2TOKEN}</gitHubToken>
							<gitHubIssuePattern>#([0-9]*)</gitHubIssuePattern>
							<filePath>CHANGELOG.md</filePath>
							<templateContent>
        <![CDATA[
# Git Changelog Plugin Changelog
Changelog of Git Changelog Plugin.
{{#tags}}
## {{name}}
 {{#issues}}
  {{#hasIssue}}
   {{#hasLink}}
### {{name}} [{{issue}}]({{link}}) {{title}}
   {{/hasLink}}
   {{^hasLink}}
### {{name}} {{issue}} {{title}}
   {{/hasLink}}
  {{/hasIssue}}
  {{^hasIssue}}
### {{name}}
  {{/hasIssue}}
  {{#commits}}
**{{{messageTitle}}}**
{{#messageBodyItems}}
 * {{.}} 
{{/messageBodyItems}}

[{{hash}}](https://github.com/jenkinsci/git-changelog-plugin/commit/{{hash}}) {{authorName}} *{{commitTime}}*

  {{/commits}}
 {{/issues}}
{{/tags}}
]]>
							</templateContent>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>com.coveo</groupId>
				<artifactId>fmt-maven-plugin</artifactId>
				<version>1.3.0</version>
				<executions>
					<execution>
						<goals>
							<goal>format</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

	<licenses>
		<license>
			<name>MIT License</name>
			<url>http://opensource.org/licenses/MIT</url>
		</license>
	</licenses>

	<developers>
		<developer>
			<id>paulwellnerbou</id>
			<name>Paul Wellner Bou</name>
			<email>paul@wellnerbou.de</email>
			<url>http://paul.wellnerbou.de</url>
		</developer>
		<developer>
			<id>tomasbjerre</id>
			<name>Tomas Bjerre</name>
			<email>tomas.bjerre85@gmail.com</email>
		</developer>
	</developers>

	<scm>
                <connection>scm:git:git://github.com/jenkinsci/${project.artifactId}-plugin.git</connection>
                <developerConnection>scm:git:git@github.com:jenkinsci/${project.artifactId}-plugin.git</developerConnection>
                <url>git@github.com:jenkinsci/${project.artifactId}-plugin</url>
                <tag>git-changelog-1.45</tag>
	</scm>

	<repositories>
		<repository>
			<id>repo.jenkins-ci.org</id>
			<url>http://repo.jenkins-ci.org/public/</url>
		</repository>
		<repository>
			<id>bintray-paulwellnerbou-maven</id>
			<name>bintray</name>
			<url>http://dl.bintray.com/paulwellnerbou/maven</url>
		</repository>
	</repositories>

	<pluginRepositories>
		<pluginRepository>
			<id>repo.jenkins-ci.org</id>
			<url>http://repo.jenkins-ci.org/public/</url>
		</pluginRepository>
	</pluginRepositories>

	<dependencies>
		<!-- git-changelog depends on Guava 18, jenkins depends on Guava 11, 14 
			is a working compromise -->
		<dependency>
			<artifactId>guava</artifactId>
			<groupId>com.google.guava</groupId>
			<version>14.0</version>
		</dependency>
		<dependency>
			<groupId>de.wellnerbou</groupId>
			<artifactId>git-changelog</artifactId>
			<version>2.3</version>
			<exclusions>
				<exclusion>
					<artifactId>guava</artifactId>
					<groupId>com.google.guava</groupId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>se.bjurr.gitchangelog</groupId>
			<artifactId>git-changelog-lib</artifactId>
			<version>1.65</version>
			<exclusions>
				<exclusion>
					<artifactId>guava</artifactId>
					<groupId>com.google.guava</groupId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.jenkins-ci.main</groupId>
			<artifactId>maven-plugin</artifactId>
			<version>2.9</version>
		</dependency>
		<dependency>
			<groupId>org.jenkins-ci.plugins</groupId>
			<artifactId>token-macro</artifactId>
			<version>1.10</version>
		</dependency>
		<dependency>
			<groupId>org.jenkins-ci.plugins</groupId>
			<artifactId>git</artifactId>
			<version>2.3.5</version>
		</dependency>

		<!-- test // -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.12</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.assertj</groupId>
			<artifactId>assertj-core</artifactId>
			<version>2.1.0</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<profiles>
		<profile>
			<id>with-email-ext</id>
			<!-- The email-ext plugin is a good way to test the token macro replacements. -->
			<dependencies>
				<dependency>
					<groupId>org.jenkins-ci.plugins</groupId>
					<artifactId>email-ext</artifactId>
					<version>2.40.5</version>
				</dependency>
			</dependencies>
		</profile>
	</profiles>

</project>
