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

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


The following commit(s) were added to refs/heads/main by this push:
     new 0bec946c01 [kie-issues#839] Reproducible build (#3393)
0bec946c01 is described below

commit 0bec946c011f3284fb48d1f66029e22dd49e1e90
Author: Tibor Zimányi <[email protected]>
AuthorDate: Wed Feb 7 13:14:17 2024 +0100

    [kie-issues#839] Reproducible build (#3393)
---
 kogito-build/kogito-build-no-bom-parent/pom.xml | 60 ++++++++++++++++++++++++-
 1 file changed, 58 insertions(+), 2 deletions(-)

diff --git a/kogito-build/kogito-build-no-bom-parent/pom.xml 
b/kogito-build/kogito-build-no-bom-parent/pom.xml
index 98041ecfe7..d13e70d16d 100644
--- a/kogito-build/kogito-build-no-bom-parent/pom.xml
+++ b/kogito-build/kogito-build-no-bom-parent/pom.xml
@@ -112,12 +112,12 @@
     <version.de.skuzzle.enforcer>1.1.0</version.de.skuzzle.enforcer>
     <version.deploy.plugin>2.8.2</version.deploy.plugin>
     <version.enforcer.plugin>3.0.0-M2</version.enforcer.plugin>
-    <version.exec.plugin>1.6.0</version.exec.plugin>
+    <version.exec.plugin>3.1.1</version.exec.plugin>
     <version.findbugs.plugin>3.0.5</version.findbugs.plugin>
     <version.install.plugin>2.5.2</version.install.plugin>
     <version.invoker.plugin>3.2.2</version.invoker.plugin>
     <version.jacoco.plugin>0.8.11</version.jacoco.plugin>
-    <version.jandex.plugin>3.0.5</version.jandex.plugin>
+    <version.jandex.plugin>3.1.6</version.jandex.plugin>
     <version.jar.plugin>3.2.0</version.jar.plugin>
     <version.javancss.plugin>2.0</version.javancss.plugin>
     <version.jdocbook.plugin>2.3.9</version.jdocbook.plugin>
@@ -146,6 +146,10 @@
 
     <!-- These are added as part of the migration from JBoss to Apache parent 
pom.xml. They may be extracted to a KIE parent bom. -->
     <version.maven-checkstyle>3.3.0</version.maven-checkstyle>
+
+    <!-- This is a workaround, until reproducible builds are fixed in Quarkus. 
-->
+    <!-- This dependency is used in exec-maven-plugin configuration to remove 
timestamps from properties files generated by Quarkus. -->
+    <version.drools.util>${project.version}</version.drools.util>
   </properties>
 
   <build>
@@ -695,6 +699,58 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-checkstyle-plugin</artifactId>
       </plugin>
+      <plugin>
+        <!-- Remove comments from META-INF/quarkus-javadoc.properties -->
+        <!-- This is needed because the file generated by quarkus contains a 
timestamp in a comment that makes the build not reproducible -->
+        <!-- This workaround can be removed when drools will be migrated to 
quarkus release containing this fix 
https://github.com/quarkusio/quarkus/pull/38365 -->
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>exec-maven-plugin</artifactId>
+        <dependencies>
+          <dependency>
+            <groupId>org.drools</groupId>
+            <artifactId>drools-util</artifactId>
+            <version>${version.drools.util}</version>
+          </dependency>
+        </dependencies>
+        <executions>
+          <execution>
+            <id>Remove comments from generated files</id>
+            <phase>prepare-package</phase>
+            <goals>
+              <goal>java</goal>
+            </goals>
+            <configuration>
+              <includeProjectDependencies>false</includeProjectDependencies>
+              <includePluginDependencies>true</includePluginDependencies>
+              <executableDependency>
+                <groupId>org.drools</groupId>
+                <artifactId>drools-util</artifactId>
+              </executableDependency>
+              <mainClass>org.drools.util.RemoveCommentsMain</mainClass>
+              <arguments>
+                <argument>true</argument>
+                
<argument>${project.basedir}/target/classes/META-INF/quarkus-javadoc.properties</argument>
+                
<argument>${project.basedir}/target/classes/META-INF/quarkus-extension.properties</argument>
+                
<argument>${project.basedir}/target/generated-sources/annotations/org/kie/kogito/addons/quarkus/knative/eventing/deployment/EventingConfiguration.jdp</argument>
+                
<argument>${project.basedir}/target/generated-sources/annotations/org/kie/kogito/addons/quarkus/knative/eventing/deployment/SinkConfiguration.jdp</argument>
+                
<argument>${project.basedir}/target/generated-sources/annotations/org/kie/kogito/events/config/EventsRuntimeConfig.jdp</argument>
+                
<argument>${project.basedir}/target/generated-sources/annotations/org/kie/kogito/quarkus/config/KogitoBuildTimeConfig.jdp</argument>
+                
<argument>${project.basedir}/target/generated-sources/annotations/org/kie/kogito/quarkus/config/KogitoEventingRuntimeConfig.jdp</argument>
+                
<argument>${project.basedir}/target/generated-sources/annotations/org/kie/kogito/quarkus/config/KogitoRuntimeConfig.jdp</argument>
+                
<argument>${project.basedir}/target/generated-sources/annotations/org/kie/kogito/quarkus/serverless/workflow/config/KogitoBuildTimeConfig.jdp</argument>
+                
<argument>${project.basedir}/target/generated-sources/annotations/org/kie/kogito/quarkus/serverless/workflow/config/KogitoRPCRuntimeConfig.jdp</argument>
+                
<argument>${project.basedir}/target/generated-sources/annotations/org/kie/kogito/quarkus/serverless/workflow/config/KogitoServerlessWorkflowBuildTimeConfig.jdp</argument>
+                
<argument>${project.basedir}/target/generated-sources/annotations/org/kie/kogito/quarkus/serverless/workflow/config/KogitoServerlessWorkflowRuntimeConfig.jdp</argument>
+                
<argument>${project.basedir}/target/generated-sources/annotations/org/kie/kogito/quarkus/serverless/workflow/config/KogitoBuildTimeConfig.jdp</argument>
+                
<argument>${project.basedir}/target/generated-sources/annotations/org/kie/kogito/quarkus/workflow/deployment/config/KogitoWorkflowBuildTimeConfig.jdp</argument>
+                
<argument>${project.basedir}/target/generated-sources/annotations/org/kie/kogito/quarkus/workflow/deployment/config/KogitoDevServicesBuildTimeConfig.jdp</argument>
+                
<argument>${project.basedir}/target/generated-sources/annotations/org/kie/kogito/tracing/decision/quarkus/deployment/KogitoBuildTimeConfig.jdp</argument>
+                
<argument>${project.basedir}/target/generated-sources/annotations/org/kie/kogito/tracing/decision/quarkus/deployment/KogitoDevServicesBuildTimeConfig.jdp</argument>
+              </arguments>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 


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

Reply via email to