Skip to content

Commit

Permalink
RATIS-2119. Enable reproducible builds (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai authored Jun 28, 2024
1 parent d23519c commit 334f6e9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -->
Expand All @@ -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>

Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 334f6e9

Please sign in to comment.