[
https://issues.apache.org/jira/browse/OPENJPA-3088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18155183#comment-18155183
]
ASF subversion and git services commented on OPENJPA-3088:
----------------------------------------------------------
Commit c0f3a03d43b261331b17c4e9f3ccad22fb6439bd in openjpa's branch
refs/heads/OPENJPA-3088 from Richard Zowalla
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=c0f3a03d4 ]
[OPENJPA-3088] Make the build reproducible
Declare project.build.outputTimestamp in the root pom.xml, set to the
time of the 4.2.0 release; maven-release-plugin sets it to the release
time from now on.
Two builds of the same commit differed in three places:
- The jar manifests had Implementation-Build and Implementation-Date
with the time of the build, from buildnumber-maven-plugin and in the
locale of the machine. Implementation-Date is now the output timestamp,
Implementation-Build and the plugin are removed.
- The manual had a "Last updated" footer with the time of the checkout
on every HTML page, the build time in the PDF and the year of the
build in the copyright line. They now come from the output timestamp.
- The assemblies stored the file permissions of the working tree, so the
source release changed with the umask. They now store 0644 for files
and 0755 for directories.
With these changes all 343 jars and archives of two release builds with
docs are identical (different directory, time zone and umask), and
artifact:compare reports no difference. RELEASING.md describes how to
check a build and a release.
> Make the build reproducible
> ---------------------------
>
> Key: OPENJPA-3088
> URL: https://issues.apache.org/jira/browse/OPENJPA-3088
> Project: OpenJPA
> Issue Type: Improvement
> Reporter: Richard Zowalla
> Assignee: Richard Zowalla
> Priority: Major
> Fix For: 4.3.0
>
>
> Configure the build so that the release artifacts can be reproduced from the
> tag (https://maven.apache.org/guides/mini/guide-reproducible-builds.html):
> set project.build.outputTimestamp, which maven-release-plugin updates on
> release, check the jars and assemblies with artifact:compare, and fix the
> plugins or generated files that still differ between two builds. Document how
> to check a release in RELEASING.md.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)