Add project.build.outputTimestamp for reproducible builds

Apache 2.0

Adds the project.build.outputTimestamp property, which Maven uses to make build outputs reproducible by stamping archive entries with a fixed timestamp instead of the current time. An existing value is preserved. See Configuring for Reproducible Builds.

org.openrewrite.maven.cleanup.AddProjectBuildOutputTimestamp

Optional

ISO 8601 timestamp, integer seconds since the epoch, or property reference such as ${git.commit.author.time}. Defaults to 1980-01-01T00:00:02Z, the earliest value accepted by Maven's ZIP-producing toolchain.

mod run . --recipe=org.openrewrite.maven.cleanup.AddProjectBuildOutputTimestamp

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Add Maven project property project.build.outputTimestamp=1980-01-01T00:00:02Z