Skip to content

Commit 1a90e8f

Browse files
gmunozfergdoliveira
authored andcommitted
[Fixes_#2045] Native build failing in examples with persistence (apache#2046)
1 parent 99d4ac3 commit 1a90e8f

File tree

8 files changed

+24
-2
lines changed

8 files changed

+24
-2
lines changed

serverless-workflow-examples/serverless-workflow-callback-quarkus/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@
110110
<groupId>io.quarkus</groupId>
111111
<artifactId>quarkus-jdbc-postgresql</artifactId>
112112
</dependency>
113+
<dependency>
114+
<groupId>io.quarkus</groupId>
115+
<artifactId>quarkus-flyway</artifactId>
116+
</dependency>
113117
<dependency>
114118
<groupId>io.quarkus</groupId>
115119
<artifactId>quarkus-agroal</artifactId>

serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/resources/application.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ kogito.persistence.proto.marshaller=false
6666
kie.flyway.enabled=true
6767

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

7071
# profile to pack this example into a container, to use it execute activate the maven container profile, -Dcontainer
7172
%container.quarkus.container-image.build=true

serverless-workflow-examples/serverless-workflow-compensation-quarkus/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@
191191
<groupId>io.quarkus</groupId>
192192
<artifactId>quarkus-agroal</artifactId>
193193
</dependency>
194+
<dependency>
195+
<groupId>io.quarkus</groupId>
196+
<artifactId>quarkus-flyway</artifactId>
197+
</dependency>
194198
</dependencies>
195199
</profile>
196200
</profiles>

serverless-workflow-examples/serverless-workflow-compensation-quarkus/src/main/resources/application.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
# Packaging
2121
# quarkus.package.type=fast-jar
2222
quarkus.native.native-image-xmx=8g
23+
quarkus.native.additional-build-args=--initialize-at-run-time=org.postgresql.sspi.SSPIClient
2324

2425
%persistence.quarkus.devservices.enabled=false
2526
%persistence.kie.flyway.enabled=true
@@ -30,4 +31,4 @@ quarkus.native.native-image-xmx=8g
3031
%container.quarkus.container-image.push=false
3132
%container.quarkus.container-image.group=${USER}
3233
%container.quarkus.container-image.registry=dev.local
33-
%container.quarkus.container-image.tag=1.0-SNAPSHOT
34+
%container.quarkus.container-image.tag=1.0-SNAPSHOT

serverless-workflow-examples/serverless-workflow-correlation-quarkus/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@
194194
<groupId>io.quarkus</groupId>
195195
<artifactId>quarkus-jdbc-postgresql</artifactId>
196196
</dependency>
197+
<dependency>
198+
<groupId>io.quarkus</groupId>
199+
<artifactId>quarkus-flyway</artifactId>
200+
</dependency>
197201
<dependency>
198202
<groupId>io.quarkus</groupId>
199203
<artifactId>quarkus-agroal</artifactId>

serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/resources/application.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ kogito.persistence.type=jdbc
8989
#run create tables scripts
9090
kie.flyway.enabled=true
9191

92+
quarkus.native.additional-build-args=--initialize-at-run-time=org.postgresql.sspi.SSPIClient
93+
9294
quarkus.datasource.db-kind=postgresql
9395
%prod.quarkus.datasource.username=postgres
9496
%prod.quarkus.datasource.password=postgres

serverless-workflow-examples/serverless-workflow-data-index-quarkus/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@
101101
<groupId>io.quarkus</groupId>
102102
<artifactId>quarkus-jdbc-postgresql</artifactId>
103103
</dependency>
104+
<dependency>
105+
<groupId>io.quarkus</groupId>
106+
<artifactId>quarkus-flyway</artifactId>
107+
</dependency>
104108
<dependency>
105109
<groupId>io.quarkus</groupId>
106110
<artifactId>quarkus-agroal</artifactId>

serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/resources/application.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ kie.flyway.enabled=true
5252
quarkus.kubernetes-client.devservices.enabled=false
5353

5454
quarkus.native.native-image-xmx=8g
55+
quarkus.native.additional-build-args=--initialize-at-run-time=org.postgresql.sspi.SSPIClient
56+
5557
# Security
5658
quarkus.oidc.enabled=false
5759

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

0 commit comments

Comments
 (0)