This is an automated email from the ASF dual-hosted git repository.

fjtiradosarti pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-examples.git


The following commit(s) were added to refs/heads/main by this push:
     new d8d434fb0 [Fixes_#2045] Native build failing in examples with 
persistence (#2046)
d8d434fb0 is described below

commit d8d434fb039a835f620b02f2585000fa0fa1f74d
Author: Gonzalo Muñoz <gonzalo51...@gmail.com>
AuthorDate: Fri Jan 10 13:02:08 2025 +0100

    [Fixes_#2045] Native build failing in examples with persistence (#2046)
---
 .../serverless-workflow-callback-quarkus/pom.xml                      | 4 ++++
 .../src/main/resources/application.properties                         | 1 +
 .../serverless-workflow-compensation-quarkus/pom.xml                  | 4 ++++
 .../src/main/resources/application.properties                         | 3 ++-
 .../serverless-workflow-correlation-quarkus/pom.xml                   | 4 ++++
 .../src/main/resources/application.properties                         | 2 ++
 .../serverless-workflow-data-index-quarkus/pom.xml                    | 4 ++++
 .../src/main/resources/application.properties                         | 4 +++-
 8 files changed, 24 insertions(+), 2 deletions(-)

diff --git 
a/serverless-workflow-examples/serverless-workflow-callback-quarkus/pom.xml 
b/serverless-workflow-examples/serverless-workflow-callback-quarkus/pom.xml
index 0624ec72d..953fb55ba 100644
--- a/serverless-workflow-examples/serverless-workflow-callback-quarkus/pom.xml
+++ b/serverless-workflow-examples/serverless-workflow-callback-quarkus/pom.xml
@@ -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>
diff --git 
a/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/resources/application.properties
 
b/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/resources/application.properties
index 58758db2d..46b4dfe66 100644
--- 
a/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/resources/application.properties
+++ 
b/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/resources/application.properties
@@ -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
diff --git 
a/serverless-workflow-examples/serverless-workflow-compensation-quarkus/pom.xml 
b/serverless-workflow-examples/serverless-workflow-compensation-quarkus/pom.xml
index 41b0cbd1a..2e6a3e91d 100644
--- 
a/serverless-workflow-examples/serverless-workflow-compensation-quarkus/pom.xml
+++ 
b/serverless-workflow-examples/serverless-workflow-compensation-quarkus/pom.xml
@@ -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>
diff --git 
a/serverless-workflow-examples/serverless-workflow-compensation-quarkus/src/main/resources/application.properties
 
b/serverless-workflow-examples/serverless-workflow-compensation-quarkus/src/main/resources/application.properties
index 654ba0b37..377cae6b1 100644
--- 
a/serverless-workflow-examples/serverless-workflow-compensation-quarkus/src/main/resources/application.properties
+++ 
b/serverless-workflow-examples/serverless-workflow-compensation-quarkus/src/main/resources/application.properties
@@ -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
@@ -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
\ No newline at end of file
+%container.quarkus.container-image.tag=1.0-SNAPSHOT
diff --git 
a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/pom.xml 
b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/pom.xml
index 56d8c803a..48f7929f9 100644
--- 
a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/pom.xml
+++ 
b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/pom.xml
@@ -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>
diff --git 
a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/resources/application.properties
 
b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/resources/application.properties
index 7a9f24ce6..922b84320 100644
--- 
a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/resources/application.properties
+++ 
b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/resources/application.properties
@@ -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
diff --git 
a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/pom.xml 
b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/pom.xml
index 052b1f563..fd4f42260 100644
--- 
a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/pom.xml
+++ 
b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/pom.xml
@@ -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>
diff --git 
a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/resources/application.properties
 
b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/resources/application.properties
index bdb9623e6..6265a66ed 100644
--- 
a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/resources/application.properties
+++ 
b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/resources/application.properties
@@ -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
 
@@ -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
\ No newline at end of file
+%http-events.mp.messaging.outgoing.kogito-processdefinitions-events.method=POST


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@kie.apache.org
For additional commands, e-mail: commits-h...@kie.apache.org

Reply via email to