xref: /JGit/org.eclipse.jgit.http.apache/pom.xml (revision 1cbfea9ece03b40669377a7f858218f6994562ea)
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3  Copyright (C) 2014, Matthias Sohn <matthias.sohn@sap.com> and others
4
5  This program and the accompanying materials are made available under the
6  terms of the Eclipse Distribution License v. 1.0 which is available at
7  http://www.eclipse.org/org/documents/edl-v10.php.
8
9  SPDX-License-Identifier: BSD-3-Clause
10-->
11<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
12	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
13	<modelVersion>4.0.0</modelVersion>
14
15  <parent>
16    <groupId>org.eclipse.jgit</groupId>
17    <artifactId>org.eclipse.jgit-parent</artifactId>
18    <version>5.13.0-SNAPSHOT</version>
19  </parent>
20
21  <artifactId>org.eclipse.jgit.http.apache</artifactId>
22  <name>JGit - Apache httpclient based HTTP support</name>
23
24  <description>
25    Apache httpclient based HTTP support
26  </description>
27
28  <properties>
29    <translate-qualifier />
30    <source-bundle-manifest>${project.build.directory}/META-INF/SOURCE-MANIFEST.MF</source-bundle-manifest>
31  </properties>
32
33  <dependencies>
34    <dependency>
35      <groupId>org.eclipse.jgit</groupId>
36      <artifactId>org.eclipse.jgit</artifactId>
37      <version>${project.version}</version>
38    </dependency>
39    <dependency>
40      <groupId>org.apache.httpcomponents</groupId>
41      <artifactId>httpclient</artifactId>
42    </dependency>
43    <dependency>
44      <groupId>org.apache.httpcomponents</groupId>
45      <artifactId>httpcore</artifactId>
46    </dependency>
47  </dependencies>
48
49  <build>
50    <sourceDirectory>src/</sourceDirectory>
51
52    <resources>
53      <resource>
54        <directory>.</directory>
55        <includes>
56          <include>plugin.properties</include>
57          <include>about.html</include>
58        </includes>
59      </resource>
60      <resource>
61        <directory>resources/</directory>
62      </resource>
63    </resources>
64
65    <plugins>
66      <plugin>
67        <groupId>org.apache.maven.plugins</groupId>
68        <artifactId>maven-antrun-plugin</artifactId>
69        <executions>
70          <execution>
71            <id>translate-source-qualifier</id>
72            <phase>generate-resources</phase>
73            <configuration>
74              <target>
75                <copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/>
76                <replace file="${source-bundle-manifest}">
77                  <replacefilter token=".qualifier" value=".${maven.build.timestamp}"/>
78                </replace>
79              </target>
80            </configuration>
81            <goals>
82              <goal>run</goal>
83            </goals>
84          </execution>
85        </executions>
86      </plugin>
87
88      <plugin>
89        <groupId>org.apache.maven.plugins</groupId>
90        <artifactId>maven-source-plugin</artifactId>
91        <inherited>true</inherited>
92        <executions>
93          <execution>
94            <id>attach-sources</id>
95            <phase>process-classes</phase>
96            <goals>
97              <goal>jar</goal>
98            </goals>
99            <configuration>
100              <archive>
101                <manifestFile>${source-bundle-manifest}</manifestFile>
102              </archive>
103            </configuration>
104          </execution>
105        </executions>
106      </plugin>
107
108      <plugin>
109        <artifactId>maven-jar-plugin</artifactId>
110        <configuration>
111          <archive>
112            <manifestFile>${bundle-manifest}</manifestFile>
113          </archive>
114        </configuration>
115      </plugin>
116
117      <plugin>
118          <groupId>com.github.siom79.japicmp</groupId>
119          <artifactId>japicmp-maven-plugin</artifactId>
120          <version>${japicmp-version}</version>
121          <configuration>
122              <oldVersion>
123                  <dependency>
124                      <groupId>${project.groupId}</groupId>
125                      <artifactId>${project.artifactId}</artifactId>
126                      <version>${jgit-last-release-version}</version>
127                  </dependency>
128              </oldVersion>
129              <newVersion>
130                  <file>
131                      <path>${project.build.directory}/${project.artifactId}-${project.version}.jar</path>
132                  </file>
133              </newVersion>
134              <parameter>
135                  <onlyModified>true</onlyModified>
136                  <includes>
137                      <include>org.eclipse.jgit.*</include>
138                  </includes>
139                  <accessModifier>public</accessModifier>
140                  <breakBuildOnModifications>false</breakBuildOnModifications>
141                  <breakBuildOnBinaryIncompatibleModifications>false</breakBuildOnBinaryIncompatibleModifications>
142                  <onlyBinaryIncompatible>false</onlyBinaryIncompatible>
143                  <includeSynthetic>false</includeSynthetic>
144                  <ignoreMissingClasses>false</ignoreMissingClasses>
145                  <skipPomModules>true</skipPomModules>
146              </parameter>
147              <skip>false</skip>
148          </configuration>
149          <executions>
150            <execution>
151             <phase>verify</phase>
152             <goals>
153               <goal>cmp</goal>
154             </goals>
155          </execution>
156        </executions>
157      </plugin>
158    </plugins>
159  </build>
160
161  <reporting>
162    <plugins>
163      <plugin>
164          <groupId>com.github.siom79.japicmp</groupId>
165          <artifactId>japicmp-maven-plugin</artifactId>
166          <version>${japicmp-version}</version>
167          <reportSets>
168              <reportSet>
169                  <reports>
170                      <report>cmp-report</report>
171                  </reports>
172              </reportSet>
173          </reportSets>
174          <configuration>
175              <oldVersion>
176                  <dependency>
177                      <groupId>${project.groupId}</groupId>
178                      <artifactId>${project.artifactId}</artifactId>
179                      <version>${jgit-last-release-version}</version>
180                  </dependency>
181              </oldVersion>
182              <newVersion>
183                  <file>
184                      <path>${project.build.directory}/${project.artifactId}-${project.version}.jar</path>
185                  </file>
186              </newVersion>
187              <parameter>
188                  <onlyModified>true</onlyModified>
189                  <includes>
190                      <include>org.eclipse.jgit.*</include>
191                  </includes>
192                  <accessModifier>public</accessModifier>
193                  <breakBuildOnModifications>false</breakBuildOnModifications>
194                  <breakBuildOnBinaryIncompatibleModifications>false</breakBuildOnBinaryIncompatibleModifications>
195                  <onlyBinaryIncompatible>false</onlyBinaryIncompatible>
196                  <includeSynthetic>false</includeSynthetic>
197                  <ignoreMissingClasses>false</ignoreMissingClasses>
198                  <skipPomModules>true</skipPomModules>
199              </parameter>
200              <skip>false</skip>
201          </configuration>
202      </plugin>
203    </plugins>
204  </reporting>
205</project>
206