Skip to content

Commit

Permalink
Fix GraalVM native-image support
Browse files Browse the repository at this point in the history
Spring Boot 3.4.0 native-image fails on Netty, as described in
spring-projects/spring-boot#43273.

This commit actually implements the workaround described in
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.4-Release-Notes#netty-in-native-image.
  • Loading branch information
alexandreroman committed Dec 11, 2024
1 parent 7de5f07 commit 5b909d3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<configuration>
<!-- Workaround for native image with Netty, as described here: -->
<!-- https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.4-Release-Notes#netty-in-native-image -->
<metadataRepository>
<version>0.3.14</version>
</metadataRepository>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
Expand Down

0 comments on commit 5b909d3

Please sign in to comment.