GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [core] Support reproducible builds by adangel · Pull Request #2444 · pmd/pmd

Conversation

@adangel

@adangel adangel commented Apr 25, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Describe the PR

This will allow to produce reproducible builds of PMD.

See https://reproducible-builds.org/ and
https://maven.apache.org/guides/mini/guide-reproducible-builds.html

The property "project.build.outputTimestamp" is supposed to be updated
automatically by maven-release-plugin when updating the version
(goal prepare).

Related issues

No issues.

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by travis)
  • Added (in-code) documentation (if needed)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@adangel
Support reproducible builds
6249b4e
See https://reproducible-builds.org/ and
https://maven.apache.org/guides/mini/guide-reproducible-builds.html

The property "project.build.outputTimestamp" is supposed to be updated
automatically by maven-release-plugin when updating the version
(goal prepare).
@adangel adangel added this to the 6.24.0 milestone Apr 25, 2020
@adangel
[doc] Update release notes, refs pmd#2444
09b0e74
@ghost

ghost commented Apr 25, 2020

Copy link
Copy Markdown
1 Message
📖 No java rules are changed!

Generated by 🚫 Danger

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@adangel
adangel marked this pull request as ready for review April 25, 2020 10:31
@oowekyala

oowekyala commented Apr 25, 2020

Copy link
Copy Markdown
Member

Maybe we should describe this somewhere in BUILDING.md? Especially, including the warnings listed on the maven page:

Notice: Reproducible Builds for Maven:

  • Generally give different results on Windows and Unix because of different newlines. (carriage return linefeed on Windows, linefeed on Unixes)
  • Generally depend on the major version of the JDK used to compile. (Even with source/target defined, each major JDK version changes the generated bytecode.)
adangel reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@adangel
[doc] Add info about reproducible builds
35b559b
@adangel

adangel commented May 7, 2020

Copy link
Copy Markdown
Member Author

I've also tested now, that on release:prepare the timestamp in "project.build.outputTimestamp" is updated accordingly on the tag and the new timestamp then also in the next development version. In summary, this timestamp always contains the timestamp of the last release.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@adangel
adangel merged commit cb910d6 into pmd:master May 22, 2020
@adangel
adangel deleted the reproducible-builds branch May 22, 2020 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

6.24.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@adangel @oowekyala
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.