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

gitgabrio 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 b47aad15e [incubator-kie-issues#2005] Disable runtime type check on 
examples (#2114)
b47aad15e is described below

commit b47aad15e176cecaab2c4500e730502abc75eb54
Author: Gabriele Cardosi <[email protected]>
AuthorDate: Wed Jul 9 11:31:54 2025 +0200

    [incubator-kie-issues#2005] Disable runtime type check on examples (#2114)
    
    * [incubator-kie-issues#2005] Disable runtime type check on examples
    
    * [incubator-kie-issues#2005] Remove pom setting of 
org.kie.dmn.runtime.typecheck
    
    ---------
    
    Co-authored-by: Gabriele-Cardosi <[email protected]>
---
 .../dmn-15-quarkus-example/pom.xml                   | 20 --------------------
 .../src/main/resources/application.properties        |  3 ++-
 .../dmn-15-springboot-example/pom.xml                | 20 --------------------
 .../src/main/resources/application.properties        | 17 +----------------
 .../src/main/resources/application.properties        |  1 +
 .../src/main/resources/application.properties        |  1 +
 .../src/main/resources/application.properties        |  1 +
 7 files changed, 6 insertions(+), 57 deletions(-)

diff --git a/kogito-quarkus-examples/dmn-15-quarkus-example/pom.xml 
b/kogito-quarkus-examples/dmn-15-quarkus-example/pom.xml
index 8d86e9f78..ab80480bc 100644
--- a/kogito-quarkus-examples/dmn-15-quarkus-example/pom.xml
+++ b/kogito-quarkus-examples/dmn-15-quarkus-example/pom.xml
@@ -21,7 +21,6 @@
     <kogito.bom.version>999-SNAPSHOT</kogito.bom.version>
     <version.org.kie.kogito>999-SNAPSHOT</version.org.kie.kogito>
     <dependency-plugin.version>3.6.1</dependency-plugin.version>
-    <enable.runtime.typecheck>true</enable.runtime.typecheck>
   </properties>
   <dependencyManagement>
     <dependencies>
@@ -105,25 +104,6 @@
       </resource>
     </resources>
     <plugins>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>properties-maven-plugin</artifactId>
-        <executions>
-          <execution>
-            <goals>
-              <goal>set-system-properties</goal>
-            </goals>
-            <configuration>
-              <properties>
-                <property>
-                  <name>org.kie.dmn.runtime.typecheck</name>
-                  <value>${enable.runtime.typecheck}</value>
-                </property>
-              </properties>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
       <plugin>
         <groupId>${quarkus.platform.group-id}</groupId>
         <artifactId>quarkus-maven-plugin</artifactId>
diff --git 
a/kogito-quarkus-examples/dmn-15-quarkus-example/src/main/resources/application.properties
 
b/kogito-quarkus-examples/dmn-15-quarkus-example/src/main/resources/application.properties
index d98c28a48..9de451bba 100644
--- 
a/kogito-quarkus-examples/dmn-15-quarkus-example/src/main/resources/application.properties
+++ 
b/kogito-quarkus-examples/dmn-15-quarkus-example/src/main/resources/application.properties
@@ -20,4 +20,5 @@
 # Packaging
 
 quarkus.swagger-ui.always-include=true
-quarkus.native.additional-build-args=--initialize-at-run-time=org.apache.hc.client5.http.impl.auth.NTLMEngineImpl
\ No newline at end of file
+quarkus.native.additional-build-args=--initialize-at-run-time=org.apache.hc.client5.http.impl.auth.NTLMEngineImpl
+org.kie.dmn.runtime.typecheck=true
\ No newline at end of file
diff --git a/kogito-springboot-examples/dmn-15-springboot-example/pom.xml 
b/kogito-springboot-examples/dmn-15-springboot-example/pom.xml
index 4ced867fa..1d12a26f2 100644
--- a/kogito-springboot-examples/dmn-15-springboot-example/pom.xml
+++ b/kogito-springboot-examples/dmn-15-springboot-example/pom.xml
@@ -37,7 +37,6 @@
     <version.org.kie.kogito>999-SNAPSHOT</version.org.kie.kogito>
     <kogito.bom.version>999-SNAPSHOT</kogito.bom.version>
     <dependency-plugin.version>3.8.1</dependency-plugin.version>
-    <enable.runtime.typecheck>true</enable.runtime.typecheck>
   </properties>
 
   <dependencyManagement>
@@ -102,25 +101,6 @@
       </resource>
     </resources>
     <plugins>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>properties-maven-plugin</artifactId>
-        <executions>
-          <execution>
-            <goals>
-              <goal>set-system-properties</goal>
-            </goals>
-            <configuration>
-              <properties>
-                <property>
-                  <name>org.kie.dmn.runtime.typecheck</name>
-                  <value>${enable.runtime.typecheck}</value>
-                </property>
-              </properties>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
       <plugin>
         <groupId>org.kie.kogito</groupId>
         <artifactId>kogito-maven-plugin</artifactId>
diff --git 
a/kogito-springboot-examples/dmn-15-springboot-example/src/main/resources/application.properties
 
b/kogito-springboot-examples/dmn-15-springboot-example/src/main/resources/application.properties
index df5f5d267..e83e4dd06 100644
--- 
a/kogito-springboot-examples/dmn-15-springboot-example/src/main/resources/application.properties
+++ 
b/kogito-springboot-examples/dmn-15-springboot-example/src/main/resources/application.properties
@@ -20,19 +20,4 @@
 # Packaging
 
 server.address=0.0.0.0
-action=$1
-
-if [ "${action}" == "uninstall" ]; then
-  echo "*** uninstalling task console"
-  oc delete all,configmap --selector app=kogito-task-console -n 
$(getProjectName)
-
-elif [ "${action}" == "install" ]; then
-  echo "*** installing task console"
-  oc new-app 
docker.io/apache/incubator-kie-kogito-task-console:${KOGITO_VERSION} -n 
$(getProjectName) $(dryRun "NewApp")
-  waitForPod kogito-task-console
-  oc patch deployment kogito-task-console --patch "$(cat 
deployment-patch.yaml)" -n $(getProjectName) $(dryRun)
-  waitForPod kogito-task-console
-  oc expose service/kogito-task-console -n $(getProjectName) $(dryRun)
-else
-  echo "*** no such action: $action"
-fi
+org.kie.dmn.runtime.typecheck=true
diff --git 
a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/resources/application.properties
 
b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/resources/application.properties
index bd014d347..624722581 100644
--- 
a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/resources/application.properties
+++ 
b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/resources/application.properties
@@ -22,3 +22,4 @@ server.port=8080
 # REST
 traffic.violation.url=http://localhost:${server.port}/
 license.validation.url=http://localhost:${server.port}/
+org.kie.dmn.runtime.typecheck=false
diff --git 
a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/resources/application.properties
 
b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/resources/application.properties
index 37162bfd2..1d0546590 100644
--- 
a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/resources/application.properties
+++ 
b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/resources/application.properties
@@ -20,3 +20,4 @@
 server.address=0.0.0.0
 kogito.generate.rest.decisions=false
 kogito.generate.rest.processes=true
+org.kie.dmn.runtime.typecheck=false
diff --git 
a/kogito-springboot-examples/process-decisions-springboot/src/main/resources/application.properties
 
b/kogito-springboot-examples/process-decisions-springboot/src/main/resources/application.properties
index 37162bfd2..1d0546590 100644
--- 
a/kogito-springboot-examples/process-decisions-springboot/src/main/resources/application.properties
+++ 
b/kogito-springboot-examples/process-decisions-springboot/src/main/resources/application.properties
@@ -20,3 +20,4 @@
 server.address=0.0.0.0
 kogito.generate.rest.decisions=false
 kogito.generate.rest.processes=true
+org.kie.dmn.runtime.typecheck=false


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to