Skip to content

Commit

Permalink
[incubator-kie-issues#1348] Enforce reproducible build (apache#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]>
# Conflicts:
#	.github/workflows/pr-kogito-runtimes.yml
  • Loading branch information
rgdoliveira committed Jul 8, 2024
1 parent ccd86d3 commit c13c48a
Showing 1 changed file with 39 additions and 0 deletions.
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 c13c48a

Please sign in to comment.