-
Notifications
You must be signed in to change notification settings - Fork 113
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
Year based on Git #140
Comments
Not out of the box, you would need to load the git history and filter it
per file.
2017-06-20 11:23 GMT+02:00 Pavol Loffay <notifications@github.com>:
… Hello,
is there a way to set a year in a header based on Git date?
e.g.
File created this year: 2017
File created in 2016 and touched this year 2016-2017
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#140>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAHLo71WEDY_xjku8ZKHV8uiuO5ul2hDks5sF4-IgaJpZM4N_T0v>
.
|
Do you have a code snippet for it? I think this is the mostly used in maven based license checks. |
You could extend the license-gradle-plugin with the license-maven-plugin-git since the gradle plugin is based on the mvn one. |
I come here from @aalmiray's Kordamp Licensing Plugin, which applies this plugin. I'm also looking for "wiser" copyright year ranges, which would reflect file creation time and last modification time. Having fixed Note that it's how OpenJDK does it:
@hierynomus, any chances you would provide such functionality? 🙂 |
Hello,
is there a way to set a year in a header based on Git date?
e.g.
File created this year:
2017
File created in 2016 and touched this year
2016-2017
The text was updated successfully, but these errors were encountered: