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

resolveCiFriendliesOnly should update project.build.outputTimestamp #403

Open
ArloL opened this issue Jan 29, 2024 · 0 comments
Open

resolveCiFriendliesOnly should update project.build.outputTimestamp #403

ArloL opened this issue Jan 29, 2024 · 0 comments

Comments

@ArloL
Copy link

ArloL commented Jan 29, 2024

To make the adoption of reproducible builds easier it would be great if flatten:flatten with resolveCiFriendliesOnly would also update the build timestamp.

Given

<version>${revision}</version>
<properties>
<project.build.outputTimestamp>2023-01-01T00:00:00Z</project.build.outputTimestamp>
</properties>

When called like this

./mvnw flatten:flatten -Drevision=0.0.9 -Dproject.build.outputTimestamp=2024-01-29T12:23:36+01:00

Would result in

<version>0.0.9</version>
<properties>
<project.build.outputTimestamp>2024-01-29T12:23:36+01:00</project.build.outputTimestamp>
</properties>

That would work for my use case. Maybe a general setting like the one used on the versions-maven-plugin also makes sense.

PS Thanks for the hard work maintaining critical infrastructure like this plugin 🙏🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant