Build a test jar which we can run to test the built jar is runnable
[ldk-java] / javatester / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5     <modelVersion>4.0.0</modelVersion>
6
7     <groupId>org.ldk</groupId>
8     <artifactId>ldk-java-tests</artifactId>
9     <version>1.0-SNAPSHOT</version>
10         <dependencies>
11         <dependency>
12             <groupId>org.junit.jupiter</groupId>
13             <artifactId>junit-jupiter-api</artifactId>
14             <version>RELEASE</version>
15             <scope>compile</scope>
16         </dependency>
17         <dependency>
18             <groupId>org.bitcoinj</groupId>
19             <artifactId>bitcoinj-core</artifactId>
20             <version>0.15.10</version>
21             <scope>compile</scope>
22         </dependency>
23         <dependency>
24             <groupId>org.jetbrains</groupId>
25             <artifactId>annotations</artifactId>
26             <version>RELEASE</version>
27             <scope>compile</scope>
28         </dependency>
29         <dependency>
30             <groupId>org.ldk</groupId>
31             <artifactId>ldk-java</artifactId>
32             <version>1.0-SNAPSHOT</version>
33             <scope>compile</scope>
34         </dependency>
35     </dependencies>
36     <properties>
37         <maven.compiler.source>1.8</maven.compiler.source>
38         <maven.compiler.target>1.8</maven.compiler.target>
39     </properties>
40
41     <build>
42         <plugins>
43             <plugin>
44                 <groupId>org.apache.maven.plugins</groupId>
45                 <artifactId>maven-assembly-plugin</artifactId>
46                 <version>3.2.0</version>
47                 <executions>
48                     <execution>
49                         <phase>package</phase>
50                         <goals>
51                             <goal>single</goal>
52                         </goals>
53                         <configuration>
54                             <archive>
55                                 <manifest>
56                                     <mainClass>org.ldk.HumanObjectPeerTest</mainClass>
57                                 </manifest>
58                             </archive>
59                             <descriptorRefs>
60                                 <descriptorRef>jar-with-dependencies</descriptorRef>
61                             </descriptorRefs>
62                         </configuration>
63                     </execution>
64                  </executions>
65              </plugin>
66         </plugins>
67     </build>
68 </project>