apache / fluo-muchos

Apache Fluo Muchos
https://fluo.apache.org
Apache License 2.0
26 stars 37 forks source link

Add Apache License headers to files #244

Closed mikewalch closed 5 years ago

mikewalch commented 5 years ago

License headers were updated in #241 but there are at least 50 files where a license header could be added. This could be scripted to make it less tedious.

ctubbsii commented 5 years ago

The formatter-maven-plugin uses a plugin to update the license headers automatically during a build:

https://github.com/revelc/formatter-maven-plugin/blob/c24c4159b1ae161c0b3fccfa1f845d0cc223cfb2/pom.xml#L229-L240

https://github.com/revelc/formatter-maven-plugin/blob/c24c4159b1ae161c0b3fccfa1f845d0cc223cfb2/pom.xml#L437-L461

https://github.com/revelc/formatter-maven-plugin/blob/c24c4159b1ae161c0b3fccfa1f845d0cc223cfb2/src/build/license-header.txt

There's also https://www.mojohaus.org/license-maven-plugin/update-file-header-mojo.html but I don't know if it works the same.

mikewalch commented 5 years ago

Cool. Muchos does not use Maven. Do these plugins require it?

ctubbsii commented 5 years ago

Good point. I haven't tried, but you probably can run the plugin goal at the root with something like:

mvn com.mycila:license-maven-plugin:3.0:format -Dlicense.header=path/to/header-template.txt