Skip to content

Commit f52aaad

Browse files
committed
Improve validation guide for the reproducible build step
1 parent 5de3c50 commit f52aaad

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/resources/commons-xdoc-templates/vote-txt-template.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ Linux: uname -a
138138

139139
To check that a build is reproducible, run:
140140

141+
# Verify using a JDK major version matching: @JAVA_VERSION@
142+
export TZ="@TIMEZONE@"
141143
mvn clean verify artifact:compare -DskipTests -Dreference.repo=https://repository.apache.org/content/repositories/staging/ '-Dbuildinfo.ignore=*/*.spdx.json'
142144

143145
Note that this excludes SPDX files from the check.

src/main/scripts/generate-xdocs.build.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@
126126
<filter token="TAGCOMMIT" value="${git.tag.commit}"/>
127127
<filter token="SITEURL" value="${svn.site.url}"/>
128128
<filter token="NEXUS_REPO_ID" value="${commons.nexus.repo.id}"/>
129+
<filter token="JAVA_VERSION" value="${java.version}"/>
130+
<filter token="TIMEZONE" value="${user.timezone}"/>
129131
</filterset>
130132
</copy>
131133

0 commit comments

Comments
 (0)