Skip to content

Commit

Permalink
to build the native image, run 'mvn install -Pnative'
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlogic committed Jan 23, 2024
1 parent 0fbab81 commit 6c64374
Showing 1 changed file with 29 additions and 20 deletions.
49 changes: 29 additions & 20 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,27 +38,7 @@
</additionalJOptions>
</configuration>
</plugin>
<plugin>
<groupId>org.graalvm.nativeimage</groupId>
<artifactId>native-image-maven-plugin</artifactId>
<version>21.2.0</version>
<configuration>
<mainClass>
arb.functions.polynomials.orthogonal.JacobiPolynomialSequence</mainClass>
<buildArgs>
<buildArg>--enable-preview</buildArg>
</buildArgs>
</configuration>
<executions>
<execution>
<goals>
<goal>native-image</goal>
</goals>
<phase>package</phase>

</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
Expand Down Expand Up @@ -90,6 +70,35 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>native</id>
<build>
<plugins>
<plugin>
<groupId>org.graalvm.nativeimage</groupId>
<artifactId>native-image-maven-plugin</artifactId>
<version>21.2.0</version>
<configuration>
<mainClass>
arb.functions.polynomials.orthogonal.JacobiPolynomialSequence</mainClass>
<buildArgs>
<buildArg>--enable-preview</buildArg>
</buildArgs>
</configuration>
<executions>
<execution>
<goals>
<goal>native-image</goal>
</goals>

</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>

<dependency>
Expand Down

0 comments on commit 6c64374

Please sign in to comment.