license-maven-plugin icon indicating copy to clipboard operation
license-maven-plugin copied to clipboard

Toggle delimiter usage

Open koen-serneels opened this issue 6 years ago • 1 comments

Hi. When the plugin adds licenses, delimiters are inserted so the plugin knows where to update the license in case of updates. Afaik there are 3 configuration options to change the delimiters but not to disable them altogether. Personally I find the delimiters disturbing and unnecessary. For example, when adding the license before the package declaration or between package and imports, it make sense to simply have the chosen comment format (javadoc, ...) as delimiter. In nearly all cases there is no other stuff than licensing information on those two locations anyway. Also, when no delimiters are used inside the template, the template could then be replaced each time completely. Would it make sense to add such an option? (it could be "false" by default to keep it backward compatible) Or is there another way maybe that I just insert my predefined text in each source file (making use of the configured comment style) but already without any delimiters? ....

koen-serneels avatar Oct 29 '17 10:10 koen-serneels

A PR with an integration test is welcome.

In the meantime, you may want to consider using com.mycila:license-maven-plugin that adds no clutter to the license header.

[1] https://github.com/mycila/license-maven-plugin

ppalaga avatar Jan 04 '19 14:01 ppalaga