A follow-up message for those not familiar with the SOURCE_DATE_EPOCH environment variable ...

On 9/25/24 9:22 AM, John Neffenger wrote:
That makes sense, but in general, I always set the date like this:

   SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)
   export SOURCE_DATE_EPOCH

I pass that to Maven with:

   <project.build.outputTimestamp>
     ${env.SOURCE_DATE_EPOCH}
   </project.build.outputTimestamp>

The page below describes the variable, including a link to its specification:

SOURCE_DATE_EPOCH
https://reproducible-builds.org/docs/source-date-epoch/

The following page gives more background information:

ReproducibleBuilds/StandardEnvironmentVariables
https://wiki.debian.org/ReproducibleBuilds/StandardEnvironmentVariables

John


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to