Skip to content

Commit

Permalink
define for each OS the native-access-allowance in surefire plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Nov 22, 2023
1 parent 9faf436 commit f23f3f4
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 2 deletions.
12 changes: 12 additions & 0 deletions jfuse-linux-aarch64/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>@{surefire.jacoco.args} --enable-preview --enable-native-access=org.cryptomator.jfuse.linux.aarch64</argLine>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jextract-linux-aarch64</id>
Expand Down
12 changes: 12 additions & 0 deletions jfuse-linux-amd64/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>@{surefire.jacoco.args} --enable-preview --enable-native-access=org.cryptomator.jfuse.linux.amd64</argLine>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jextract-linux-amd64</id>
Expand Down
12 changes: 12 additions & 0 deletions jfuse-mac/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>@{surefire.jacoco.args} --enable-preview --enable-native-access=org.cryptomator.jfuse.mac</argLine>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jextract-mac</id>
Expand Down
12 changes: 12 additions & 0 deletions jfuse-win/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>@{surefire.jacoco.args} --enable-preview --enable-native-access=org.cryptomator.jfuse.win</argLine>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jextract-win</id>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.1</version>
<version>3.2.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.2.1</version>
<version>3.2.2</version>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
Expand Down

0 comments on commit f23f3f4

Please sign in to comment.