summaryrefslogtreecommitdiff
path: root/wrappers/java/pom.xml
diff options
context:
space:
mode:
authorStevenWdV <stevenwdv@gmail.com>2021-11-29 00:12:42 +0100
committerStevenWdV <stevenwdv@gmail.com>2021-11-29 00:12:42 +0100
commitf463d4c1a550c4b3dfc0be362f0b0a723a88122d (patch)
tree9b85337f1d9eda3d7070cd57d952712cfe2ae6cc /wrappers/java/pom.xml
parent60658378f68cc7c67cbea2758c6aef455c115c05 (diff)
Improve Java wrapper: add all tests, link correct libraries, use Maven, add Makefile & GitHub workflow. Fix make clean targets.
Diffstat (limited to 'wrappers/java/pom.xml')
-rw-r--r--wrappers/java/pom.xml102
1 files changed, 102 insertions, 0 deletions
diff --git a/wrappers/java/pom.xml b/wrappers/java/pom.xml
new file mode 100644
index 0000000..bd9f721
--- /dev/null
+++ b/wrappers/java/pom.xml
@@ -0,0 +1,102 @@
+<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>
+
+ <groupId>nl.eduvpn.common</groupId>
+ <version>0.1.0</version>
+ <packaging>jar</packaging>
+
+ <artifactId>eduvpncommon</artifactId>
+ <name>eduVPN common library</name>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <maven.compiler.source>1.8</maven.compiler.source>
+ <maven.compiler.target>1.8</maven.compiler.target>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>net.java.dev.jna</groupId>
+ <artifactId>jna</artifactId>
+ <version>5.10.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <version>5.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-engine</artifactId>
+ <version>5.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <resources>
+ <!-- See com.sun.jna.Platform#getNativeLibraryResourcePrefix -->
+
+ <resource>
+ <directory>../../exports/linux/amd64</directory>
+ <includes>
+ <include>*.so</include>
+ </includes>
+ <targetPath>linux-x86-64</targetPath>
+ </resource>
+ <resource>
+ <directory>../../exports/linux/arm</directory>
+ <includes>
+ <include>*.so</include>
+ </includes>
+ <targetPath>linux-arm</targetPath>
+ </resource>
+ <resource>
+ <directory>../../exports/linux/arm64</directory>
+ <includes>
+ <include>*.so</include>
+ </includes>
+ <targetPath>linux-arm64</targetPath>
+ </resource>
+
+ <resource>
+ <directory>../../exports/windows/amd64</directory>
+ <includes>
+ <include>*.dll</include>
+ </includes>
+ <targetPath>win32-x86-64</targetPath>
+ </resource>
+ <resource>
+ <directory>../../exports/windows/386</directory>
+ <includes>
+ <include>*.dll</include>
+ </includes>
+ <targetPath>win32-x86</targetPath>
+ </resource>
+ <resource>
+ <directory>../../exports/windows/arm</directory>
+ <includes>
+ <include>*.dll</include>
+ </includes>
+ <targetPath>win32-arm</targetPath>
+ </resource>
+ <resource>
+ <directory>../../exports/windows/arm64</directory>
+ <includes>
+ <include>*.dll</include>
+ </includes>
+ <targetPath>win32-arm64</targetPath>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ </plugin>
+ </plugins>
+ </build>
+</project>
+