Skip to content

Commit

Permalink
[Fixes_#2045] Native build failing in examples with persistence (apac…
Browse files Browse the repository at this point in the history
  • Loading branch information
gmunozfe authored and rgdoliveira committed Jan 14, 2025
1 parent 99d4ac3 commit 1a90e8f
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-jdbc-postgresql</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-flyway</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-agroal</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ kogito.persistence.proto.marshaller=false
kie.flyway.enabled=true

quarkus.native.native-image-xmx=8g
quarkus.native.additional-build-args=--initialize-at-run-time=org.postgresql.sspi.SSPIClient

# profile to pack this example into a container, to use it execute activate the maven container profile, -Dcontainer
%container.quarkus.container-image.build=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-agroal</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-flyway</artifactId>
</dependency>
</dependencies>
</profile>
</profiles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
# Packaging
# quarkus.package.type=fast-jar
quarkus.native.native-image-xmx=8g
quarkus.native.additional-build-args=--initialize-at-run-time=org.postgresql.sspi.SSPIClient

%persistence.quarkus.devservices.enabled=false
%persistence.kie.flyway.enabled=true
Expand All @@ -30,4 +31,4 @@ quarkus.native.native-image-xmx=8g
%container.quarkus.container-image.push=false
%container.quarkus.container-image.group=${USER}
%container.quarkus.container-image.registry=dev.local
%container.quarkus.container-image.tag=1.0-SNAPSHOT
%container.quarkus.container-image.tag=1.0-SNAPSHOT
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-jdbc-postgresql</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-flyway</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-agroal</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ kogito.persistence.type=jdbc
#run create tables scripts
kie.flyway.enabled=true

quarkus.native.additional-build-args=--initialize-at-run-time=org.postgresql.sspi.SSPIClient

quarkus.datasource.db-kind=postgresql
%prod.quarkus.datasource.username=postgres
%prod.quarkus.datasource.password=postgres
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-jdbc-postgresql</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-flyway</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-agroal</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ kie.flyway.enabled=true
quarkus.kubernetes-client.devservices.enabled=false

quarkus.native.native-image-xmx=8g
quarkus.native.additional-build-args=--initialize-at-run-time=org.postgresql.sspi.SSPIClient

# Security
quarkus.oidc.enabled=false

Expand Down Expand Up @@ -93,4 +95,4 @@ quarkus.oidc.enabled=false
%http-events.mp.messaging.outgoing.kogito-processdefinitions-events.connector=quarkus-http
%http-events.mp.messaging.outgoing.kogito-processdefinitions-events.topic=kogito-processdefinitions-events
%http-events.mp.messaging.outgoing.kogito-processdefinitions-events.url=http://data-index:8180/definitions
%http-events.mp.messaging.outgoing.kogito-processdefinitions-events.method=POST
%http-events.mp.messaging.outgoing.kogito-processdefinitions-events.method=POST

0 comments on commit 1a90e8f

Please sign in to comment.