Skip to content

Commit

Permalink
🛠️ enforce build on a unix system
Browse files Browse the repository at this point in the history
  • Loading branch information
teras committed Nov 17, 2022
1 parent 7e567b4 commit 4eb8d9d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,31 @@
</distributionManagement>
</profile>
</profiles>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>enforce-os</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireOS>
<family>unix</family>
<message>CrossMobile can only be compiled in a Unix environment (i.e. Linux or macOS).</message>
</requireOS>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 4eb8d9d

Please sign in to comment.