xref: /JGit/org.eclipse.jgit.gpg.bc.test/pom.xml (revision 1cbfea9ece03b40669377a7f858218f6994562ea)
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3  Copyright (C) 2018, Thomas Wolf <thomas.wolf@paranor.ch> 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
12<project xmlns="http://maven.apache.org/POM/4.0.0"
13    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
15  <modelVersion>4.0.0</modelVersion>
16
17  <parent>
18    <groupId>org.eclipse.jgit</groupId>
19    <artifactId>org.eclipse.jgit-parent</artifactId>
20    <version>5.13.0-SNAPSHOT</version>
21  </parent>
22
23  <artifactId>org.eclipse.jgit.gpg.bc.test</artifactId>
24  <name>JGit - BouncyCastle GPG Tests</name>
25
26  <description>
27    JUnit tests for the JGit GPG support based on BouncyCastle.
28  </description>
29
30  <properties>
31    <maven.javadoc.skip>true</maven.javadoc.skip>
32  </properties>
33
34  <dependencies>
35    <dependency>
36      <groupId>junit</groupId>
37      <artifactId>junit</artifactId>
38    </dependency>
39
40    <dependency>
41      <groupId>org.eclipse.jgit</groupId>
42      <artifactId>org.eclipse.jgit</artifactId>
43      <version>${project.version}</version>
44    </dependency>
45
46    <dependency>
47      <groupId>org.eclipse.jgit</groupId>
48      <artifactId>org.eclipse.jgit.junit</artifactId>
49      <version>${project.version}</version>
50    </dependency>
51
52    <dependency>
53      <groupId>org.eclipse.jgit</groupId>
54      <artifactId>org.eclipse.jgit.gpg.bc</artifactId>
55      <version>${project.version}</version>
56    </dependency>
57
58    <dependency>
59      <groupId>org.eclipse.jgit</groupId>
60      <artifactId>org.eclipse.jgit.test</artifactId>
61      <version>${project.version}</version>
62    </dependency>
63
64  </dependencies>
65
66  <profiles>
67    <!-- Profile provides a property which enables long running tests. -->
68    <profile>
69      <id>test.long</id>
70      <build>
71        <plugins>
72          <plugin>
73            <groupId>org.apache.maven.plugins</groupId>
74            <artifactId>maven-surefire-plugin</artifactId>
75            <configuration>
76              <argLine>@{argLine} -Djgit.test.long=true</argLine>
77            </configuration>
78          </plugin>
79        </plugins>
80      </build>
81    </profile>
82  </profiles>
83
84  <build>
85    <sourceDirectory>src/</sourceDirectory>
86    <testSourceDirectory>tst/</testSourceDirectory>
87
88    <testResources>
89      <testResource>
90        <directory>tst-rsrc/</directory>
91      </testResource>
92    </testResources>
93
94    <plugins>
95      <plugin>
96        <groupId>org.apache.maven.plugins</groupId>
97        <artifactId>maven-jar-plugin</artifactId>
98        <executions>
99          <execution>
100            <goals>
101              <goal>test-jar</goal>
102            </goals>
103          </execution>
104        </executions>
105      </plugin>
106      <plugin>
107        <artifactId>maven-surefire-plugin</artifactId>
108        <configuration>
109          <argLine>@{argLine} -Xmx1024m -Dfile.encoding=UTF-8 -Djava.io.tmpdir=${project.build.directory}</argLine>
110          <includes>
111            <include>**/*Test.java</include>
112            <include>**/*Tests.java</include>
113          </includes>
114        </configuration>
115      </plugin>
116    </plugins>
117  </build>
118</project>
119