Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#674: change timeformat from RFC822 to ISO 8601 to support maven's reproducible build feature #699

Merged
merged 12 commits into from
Feb 28, 2024

Conversation

TheSnoozer
Copy link
Collaborator

#674: parse 'project.build.outputTimestamp' formatted as ISO 8601

Context

Contributor Checklist

  • Added relevant integration or unit tests to verify the changes
  • Update the Readme or any other documentation (including relevant Javadoc)
  • Ensured that tests pass locally: mvn clean package
  • Ensured that the code meets the current checkstyle coding style definition: mvn clean verify -Pcheckstyle -Dmaven.test.skip=true -B

@Test
@Parameters(method = "parametersParseOutputTimestamp")
public void testParseOutputTimestamp(String input, Instant expected) {
Date actual = GitCommitIdMojo.parseOutputTimestamp(input);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests fail with:

TimeZone.setDefault(TimeZone.getTimeZone("America/Sao_Paulo"));

@TheSnoozer TheSnoozer changed the title #674: parse 'project.build.outputTimestamp' formatted as ISO 8601 #674: change timeformat from RFC822 ISO 8601 to support maven's reproducible build feature Feb 24, 2024
@TheSnoozer TheSnoozer changed the title #674: change timeformat from RFC822 ISO 8601 to support maven's reproducible build feature #674: change timeformat from RFC822 to ISO 8601 to support maven's reproducible build feature Feb 24, 2024
@TheSnoozer TheSnoozer merged commit 6ab02b1 into master Feb 28, 2024
42 checks passed
@TheSnoozer TheSnoozer deleted the 674 branch February 28, 2024 21:07
@TheSnoozer TheSnoozer added this to the 7.0.1 milestone Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant