Skip to content

Commit

Permalink
[kie-issues#839] Reproducible build (#3393)
Browse files Browse the repository at this point in the history
  • Loading branch information
baldimir authored Feb 7, 2024
1 parent eec6164 commit 0bec946
Showing 1 changed file with 58 additions and 2 deletions.
60 changes: 58 additions & 2 deletions kogito-build/kogito-build-no-bom-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>

Expand Down

0 comments on commit 0bec946

Please sign in to comment.