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

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ratis-thirdparty.git


The following commit(s) were added to refs/heads/master by this push:
     new 334f6e9  RATIS-2119. Enable reproducible builds (#52)
334f6e9 is described below

commit 334f6e9392dff14522a54658c83f75f417851926
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Fri Jun 28 13:15:36 2024 +0200

    RATIS-2119. Enable reproducible builds (#52)
---
 .github/workflows/ci.yaml | 4 +++-
 pom.xml                   | 7 +++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 1d5a743..8ce8a7f 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -36,7 +36,9 @@ jobs:
           distribution: 'temurin'
           java-version: 8
       - name: Run a full build
-        run: mvn --no-transfer-progress -Ptest -Prelease clean verify
+        run: mvn --no-transfer-progress -Ptest -Prelease clean install
+      - name: Check build reproducibility
+        run: mvn --no-transfer-progress -Ptest -Prelease -DskipTests clean 
verify artifact:compare
       - name: Delete temporary build artifacts
         run: rm -rf ~/.m2/repository/org/apache/ratis
         if: always()
diff --git a/pom.xml b/pom.xml
index c8e280f..ecb9a8e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -48,6 +48,7 @@
     <url>http://issues.apache.org/jira/browse/RATIS</url>
   </issueManagement>
   <properties>
+    
<project.build.outputTimestamp>2024-06-25T12:34:56Z</project.build.outputTimestamp>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
     <!-- Maven plugin versions -->
@@ -59,6 +60,7 @@
     <maven-dependency-plugin.version>3.0.2</maven-dependency-plugin.version>
     <maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version>
     <maven-replacer-plugin.version>1.5.3</maven-replacer-plugin.version>
+    <maven-shade-plugin.version>3.6.0</maven-shade-plugin.version>
     <native-maven-plugin.version>1.0-alpha-8</native-maven-plugin.version>
     <os-maven-plugin.version>1.5.0.Final</os-maven-plugin.version>
 
@@ -220,6 +222,11 @@
             <skipAssembly>true</skipAssembly>
           </configuration>
         </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-shade-plugin</artifactId>
+          <version>${maven-shade-plugin.version}</version>
+        </plugin>
         <!-- Make a jar and put the sources in the jar.
         In the parent pom, so submodules will do the right thing. -->
         <plugin>

Reply via email to