Skip to content

Fall back on SOURCE_DATE_EPOCH if it exists - #273

Merged
olamy merged 3 commits into
apache:masterfrom
fridrich:master
Jul 24, 2025
Merged

olamy merged 3 commits into
apache:masterfrom
fridrich:master

Conversation

@fridrich

Copy link
Copy Markdown
Contributor

If the outputTimestamp variable is not set, but the SOURCE_DATE_EPOCH environmental variable exists and is set, use it. If the SOURCE_DATE_EPOCH is not set, nothing changes.

This allows to have reproducible builds by default in environments that set that variable.

@fridrich

Copy link
Copy Markdown
Contributor Author

@hboutemy could you please review this? If this is acceptable, similar commit for the maven-archiver-3.x exists in waiting.

@fridrich

Copy link
Copy Markdown
Contributor Author

Related: apache/maven-javadoc-plugin#1219

@olamy olamy added the enhancement New feature or request label Jul 17, 2025

@olamy olamy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.
@hboutemy ?

@fridrich

Copy link
Copy Markdown
Contributor Author

Sorry, I maybe invalidated the review, but was finding that my PR still had some code duplication that the last commit fixed. @olamy and @hboutemy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants