hierynomus / license-gradle-plugin

Manage your license(s)
http://www.javadude.nl
Other
409 stars 114 forks source link

Changing license (copyright) on codebase but applying to ALL files? #183

Open alpizano opened 4 years ago

alpizano commented 4 years ago

Hi, I work at a company and we are using the awesome hierynomus plugin. So, we have a lot of code that was written a few years years ago with 2018 or 2019 copyrights.

I added a new class to one of our codebases today, with a 2020 copyright header, and of course, the licenseTest tasks failed as expected. Changing it back to 2019 passed.

I could update the LICENSE.txt file in our resources directory to update all the files to 2020 so it passes the check, but is this really the correct protocol? Do we really want to modify the headers of old files copyright with 2018 or 2019 dates to 2020 , even though they have not been touched?

Does the plugin have an ability/feature to only detect files that have recently been modified and leave the ones which have not been modified to be exempt of the rule check?

Whats the proper protocol for updating copyright headers at most software companies running Agile?

Thanks.