-
Notifications
You must be signed in to change notification settings - Fork 183
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
Copyright should only contain year of file creation #241
Comments
Looking at the https://github.com/mycila/license-maven-plugin/ documentation, this may be hard to configure. Because of this feature, the plugin reads the template and replaces any properties found, in our case It seems that other people are having the same problem: In version 4.0-rc1, a feature was added that allows tracking the file creation date using Git: I'll have a look if that works for us without breaking this project and changing all existing copyright headers... |
also see discussion in #231 |
PoC: Caveat: Annoying:
I haven't found a way to change this to useful output.
We could mitigate this by checking the license in a profile. ========= We could let the plugin automatically change/add the headers. |
I looked into this two years ago, the option was not available in the plugin and just learned to live with it. The license-maven-plugin has since added I'll close this issue and maybe try out the new version with file creation date. |
In case I (or someone else) picks this up again: and ran the command
to re-format all files in the repo. |
We're currently enforcing every file to contain a copyright header, which is mandatory for Adobe OpenSource projects.
Using the https://github.com/mycila/license-maven-plugin/, we're enforcing every header to contain a date in the format of
<year-of-project-inception> - <current-year>
even though that's completely unnecessary.
We should enforce the file to contain a date in the format of
<year-of-file-creation>
this will still comply to the mandatory copyright header format.
The text was updated successfully, but these errors were encountered: