...
Life would become easier if there was a dedicated POM element like ${project.build.outputTimestamp}
(with an ISO-8601 formatted date+time) which could be used to specify the timestamp value once per entire project. Every plugin could use it as default value, like it has been done with source files encoding:
/** * Timestamp for reproducible output archive entries, either formatted as ISO 8601 * <code>yyyy-MM-dd'T'HH:mm:ssXXX</code> or as an int representing seconds since the epoch (like * <a href="https://reproducible-builds.org/docs/source-date-epoch/">SOURCE_DATE_EPOCH</a>). */ @Parameter( defaultValue = "${project.build.outputTimestamp}" )
private String outputTimestamp;
|
...