Skip to content

Commit

Permalink
Fixes piranhacloud#3671 - Add generating macOS GraalVM binary for Pir…
Browse files Browse the repository at this point in the history
…anha CLI (piranhacloud#3672)
  • Loading branch information
mnriem authored Feb 23, 2024
1 parent cdff063 commit c1830e0
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 14 deletions.
24 changes: 24 additions & 0 deletions cli/cli/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>

<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>cloud.piranha.cli</groupId>
<artifactId>project</artifactId>
<version>24.3.0-SNAPSHOT</version>
</parent>
<artifactId>piranha-cli</artifactId>
<packaging>jar</packaging>
<name>Piranha - CLI</name>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>VERSION</include>
</includes>
</resource>
</resources>
</build>
</project>
File renamed without changes.
48 changes: 48 additions & 0 deletions cli/macos/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>

<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>
<parent>
<groupId>cloud.piranha.cli</groupId>
<artifactId>project</artifactId>
<version>24.3.0-SNAPSHOT</version>
</parent>
<artifactId>piranha-cli-macos</artifactId>
<packaging>pom</packaging>
<name>Piranha - CLI - macOS</name>
<profiles>
<profile>
<id>macos</id>
<build>
<plugins>
<plugin>
<groupId>org.graalvm.nativeimage</groupId>
<artifactId>native-image-maven-plugin</artifactId>
<version>21.2.0</version>
<executions>
<execution>
<goals>
<goal>native-image</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
<configuration>
<buildArgs>-H:+UnlockExperimentalVMOptions --no-fallback --install-exit-handlers</buildArgs>
<imageName>piranha</imageName>
<mainClass>cloud.piranha.cli.Cli</mainClass>
<skip>false</skip>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>cloud.piranha.cli</groupId>
<artifactId>piranha-cli</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
51 changes: 37 additions & 14 deletions cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,41 @@
<artifactId>project</artifactId>
<version>24.3.0-SNAPSHOT</version>
</parent>
<artifactId>piranha-cli</artifactId>
<packaging>jar</packaging>
<name>Piranha - CLI</name>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>VERSION</include>
</includes>
</resource>
</resources>
</build>
<groupId>cloud.piranha.cli</groupId>
<artifactId>project</artifactId>
<packaging>pom</packaging>
<name>Piranha - CLI - Project</name>
<modules>
<module>cli</module>
<module>macos</module>
</modules>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>cloud.piranha</groupId>
<artifactId>bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- test -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>

0 comments on commit c1830e0

Please sign in to comment.