Skip to content

Commit

Permalink
chore: update native test maven profile
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkAtra committed Dec 27, 2023
1 parent fbc946e commit 3f67eca
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
<asm.version>9.6</asm.version>
<springdoc-openapi.version>2.3.0</springdoc-openapi.version>
<jacoco-maven-plugin.version>0.8.11</jacoco-maven-plugin.version>

<native-image-build-arguments>--enable-url-protocols=jar --strict-image-heap</native-image-build-arguments>
</properties>

<dependencies>
Expand Down Expand Up @@ -222,7 +224,29 @@
<configuration>
<image>
<env>
<BP_NATIVE_IMAGE_BUILD_ARGUMENTS>--enable-url-protocols=jar --strict-image-heap</BP_NATIVE_IMAGE_BUILD_ARGUMENTS>
<BP_NATIVE_IMAGE_BUILD_ARGUMENTS>${native-image-build-arguments}</BP_NATIVE_IMAGE_BUILD_ARGUMENTS>
</env>
</image>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>nativeTest</id>
<build>
<plugins>
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<env>
<BP_NATIVE_IMAGE_BUILD_ARGUMENTS>${native-image-build-arguments}</BP_NATIVE_IMAGE_BUILD_ARGUMENTS>
</env>
</image>
</configuration>
Expand Down

0 comments on commit 3f67eca

Please sign in to comment.