[ 
https://issues.apache.org/jira/browse/OPENJPA-3088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18155453#comment-18155453
 ] 

ASF subversion and git services commented on OPENJPA-3088:
----------------------------------------------------------

Commit 0a4e085ebe5a4cbadaddaa1735fa891a5a4e5be2 in openjpa's branch 
refs/heads/master from Richard Zowalla
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=0a4e085eb ]

[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)
  • [jira] [Commented] (OPENJPA... ASF subversion and git services (Jira) via dev
    • [jira] [Commented] (OP... ASF subversion and git services (Jira) via dev

Reply via email to