-
Notifications
You must be signed in to change notification settings - Fork 28
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
Plugin doesn't support reproducible build #177
Comments
Thanks @jonesbusy for reporting this. The created field is required is represents the date-time when the SPDX file was generated. We could take an optional parameter to set the creation date - but to use this we would need to set it to a common date. @david-a-wheeler - I recall discussing a similar issue in a past Open Source Summit - let me know if you have any ideas. |
Thanks. I'm not 100% sure how the timestamp should behave for reproducible build (specially when stored on text file) I just remember a PR on one plugin jenkinsci/maven-hpi-plugin@77ae644#diff-4b760e437fb48628f53050007da3915c070571629a0763c9a9b83b8d4d205a29R76-R102 @Parameter(defaultValue = "${project.build.outputTimestamp}")
private String outputTimestamp; javadoc plugin just decide not to ouput any timestamp on files: https://github.com/apache/maven-javadoc-plugin/blob/f9d3227cd18ee61d14ea6334ddcc10d97b7e1300/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java#L4814-L4817 |
Thanks @jonesbusy for the pointer to the maven hpi plugin. Using the I'm thinking of using the SPDX term I'm not sure if changing the default itself will fix the problem or if we would need to do something in the configuration file in addition. Removing the timestamp unfortunately isn't an option since it is a required SPDX field. |
Doing a bit more research, I'm about 80% sure using the Note - we'll have to support both the seconds since epoch and ISO 8601 formats. I can create a PR with the changes. |
Fixes #177 NOTE: Unit tests are currently failing - it is not picking up the default parameter
@jonesbusy I attempted a fix with PR #179 - however, it isn't picking up the default value as expected. Let me know if you see any obvious errors in the implementation. I suspect the way I am specifying the property and reading the property isn't correct. |
Hi,
Given a build with
and spdx plugin
Then
Using diffoscope like recommended by maven show difference because of the date on the spdx license
The text was updated successfully, but these errors were encountered: