Skip to content

Commit

Permalink
Add native image support
Browse files Browse the repository at this point in the history
Including a workaround for spring-projects/spring-framework#31050
  • Loading branch information
philwebb authored and hinyinlam committed Sep 18, 2023
1 parent 67c3140 commit 2c76346
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .sdkmanrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
java=17.0.8-librca
java=23.r20-nik
4 changes: 4 additions & 0 deletions dog-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"interfaces": [
"org.hibernate.query.hql.spi.SqmQueryImplementor",
"org.hibernate.query.sqm.internal.SqmInterpretationsKey$InterpretationsKeySource",
"org.hibernate.query.spi.DomainQueryExecutionContext",
"org.hibernate.query.SelectionQuery",
"org.hibernate.query.CommonQueryContract"
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"name": "org.postgresql.util.PGobject",
"allDeclaredConstructors": true
}
]
5 changes: 4 additions & 1 deletion dog-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ spring:
jpa:
open-in-view: false
jmx:
enabled: true
enabled: false
mvc:
problemdetails:
enabled: true
sql:
init:
mode: always
Expand Down

0 comments on commit 2c76346

Please sign in to comment.