jni
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.cryptomator</groupId> <artifactId>jni</artifactId> <version>2.2.3</version> </dependency>
<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>org.cryptomator</groupId> <artifactId>jni</artifactId> <version>2.2.3</version> <name>Cryptomator JNI Interfaces</name> <description>This library provides the system-specific native functions used by Cryptomator.</description> <url>https://github.com/cryptomator/native-functions</url> <scm> <connection>scm:git:git@github.com:cryptomator/native-functions.git</connection> <developerConnection>scm:git:git@github.com:cryptomator/native-functions.git</developerConnection> <url>git@github.com:cryptomator/native-functions.git</url> </scm> <properties> <slf4j.version>1.7.26</slf4j.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <licenses> <license> <name>MIT License</name> <url>http://www.opensource.org/licenses/mit-license.php</url> <distribution>repo</distribution> </license> </licenses> <developers> <developer> <name>Sebastian Stenzel</name> <email>sebastian.stenzel@skymatic.de</email> <timezone>+1</timezone> <organization>cryptomator.org</organization> <organizationUrl>http://cryptomator.org</organizationUrl> </developer> <developer> <name>Tobias Hagemann</name> <email>tobias.hagemann@skymatic.de</email> <timezone>+1</timezone> <organization>cryptomator.org</organization> <organizationUrl>http://cryptomator.org</organizationUrl> </developer> </developers> <repositories> <repository> <id>bintray</id> <name>bintray</name> <url>http://jcenter.bintray.com</url> </repository> </repositories> <dependencies> <!-- Logging --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>${slf4j.version}</version> </dependency> <!-- Test --> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter</artifactId> <version>5.4.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>${slf4j.version}</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <release>11</release> <encoding>UTF-8</encoding> <showWarnings>true</showWarnings> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.1.2</version> </plugin> </plugins> </build> <profiles> <profile> <id>release</id> <distributionManagement> <repository> <id>bintray-jcenter</id> <url>https://api.bintray.com/maven/cryptomator/maven/jni/;publish=1</url> </repository> </distributionManagement> <build> <plugins> <plugin> <artifactId>maven-source-plugin</artifactId> <version>3.0.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> <version>3.0.1</version> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>mac</id> <activation> <os> <family>mac</family> </os> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>3.0.0-M2</version> <executions> <execution> <id>check-preconditions</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <requireOS> <family>mac</family> <message>This build configuration requires macOS.</message> </requireOS> <requireFilesExist> <files> <file>/usr/bin/xcodebuild</file> </files> <message>This build configuration requires Xcode command line tools. Missing "xcodebuild" command.</message> </requireFilesExist> </rules> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.6.0</version> <executions> <execution> <goals> <goal>exec</goal> </goals> <phase>compile</phase> <configuration> <executable>xcodebuild</executable> <workingDirectory>../MacFunctions</workingDirectory> <arguments> <argument>-project</argument> <argument>MacFunctions.xcodeproj</argument> <argument>-scheme</argument> <argument>MacFunctions</argument> <argument>-configuration</argument> <argument>Release</argument> <argument>-archivePath</argument> <argument>libMacFunctions</argument> <argument>-quiet</argument> <argument>clean</argument> <argument>archive</argument> <argument>USER_HEADER_SEARCH_PATHS="${java.home}/include/**"</argument> </arguments> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <forkMode>once</forkMode> <argLine>-Djava.library.path="${project.basedir}/../MacFunctions/libMacFunctions.xcarchive/Products/usr/local/lib"</argLine> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>win</id> <activation> <os> <family>windows</family> </os> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>3.0.0-M2</version> <executions> <execution> <id>check-preconditions</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <requireOS> <family>windows</family> <message>This build configuration requires Windows.</message> </requireOS> <!-- TODO can we check if mingw is installed? <requireFilesExist> <files> <file>/usr/bin/xcodebuild</file> </files> <message>This build configuration requires Xcode command line tools. Missing "xcodebuild" command.</message> </requireFilesExist> --> </rules> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.6.0</version> <executions> <execution> <goals> <goal>exec</goal> </goals> <phase>compile</phase> <configuration> <executable>mingw32-make</executable> <workingDirectory>../WinFunctions</workingDirectory> <environmentVariables> <JAVA_HOME>${java.home}</JAVA_HOME> </environmentVariables> <arguments> <argument>install</argument> </arguments> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <forkMode>once</forkMode> <argLine>-Djava.library.path="${project.basedir}/../WinFunctions/"</argLine> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project>