Skip to content

Commit

Permalink
[incubator-kie-issues#1348] Enforce reproducible build (#3564)
Browse files Browse the repository at this point in the history
* [incubator-kie-issues#1348] Enforce reproducible build

* [incubator-kie-issues#1348] Enforce reproducible build - using custom property

---------

Co-authored-by: Gabriele-Cardosi <[email protected]>
  • Loading branch information
gitgabrio and Gabriele-Cardosi committed Jun 24, 2024
1 parent e1b6dcc commit dab18f1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr-kogito-runtimes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"
definition-file: https://raw.githubusercontent.com/${GROUP:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/pull-request-config.yaml
env:
BUILD_MVN_OPTS_CURRENT: '-T 1.5C -Dvalidate-formatting'
BUILD_MVN_OPTS_CURRENT: '-Dreproducible -Dvalidate-formatting'
- name: Junit Report
uses: apache/incubator-kie-kogito-pipelines/.ci/actions/action-junit-report@main
if: ${{ always() }}
Expand Down
39 changes: 39 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,43 @@
<module>springboot</module>
</modules>

<profiles>
<profile>
<id>reproducible-build</id>
<activation>
<property>
<name>reproducible</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-artifact-plugin</artifactId>
<executions>
<execution>
<id>check-buildplan</id>
<goals>
<goal>check-buildplan</goal>
</goals>
<!-- The execution's configuration is part of the pluginManagement. This piece here only makes sure the
execution is enabled (by specifying a phase) for full profile builds. -->
<phase>validate</phase>
</execution>
<execution>
<id>compare</id>
<goals>
<goal>compare</goal>
</goals>
<!-- The execution's configuration is part of the pluginManagement. This piece here only makes sure the
execution is enabled (by specifying a phase) for full profile builds. -->
<phase>install</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit dab18f1

Please sign in to comment.