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

Support one line headers

Open Rots opened this issue 2 years ago • 5 comments

Describe the feature

I'd like to add one liners, but the current custom configuration won't allow that complaining that firstLine and lastLine cannot be empty e.g.

<!-- Copyright XYZ 2022 -->               # in .html
// Copyright XYZ 2022                     # in .ts

Any alternative you've considered ? a) live with multi line b) not using this tool

Rots avatar Dec 09 '22 13:12 Rots

I found

https://github.com/mathieucarbou/license-maven-plugin/blob/license-maven-plugin-4.2.rc3/license-maven-plugin/src/main/java/com/mycila/maven/plugin/license/header/HeaderType.java#L43

and

https://github.com/mathieucarbou/license-maven-plugin/blob/license-maven-plugin-4.2.rc3/license-maven-plugin/src/main/java/com/mycila/maven/plugin/license/header/HeaderType.java#L59

the first still adds blank lines before and after the comment, in some cases the first tag gets lost :/ the second mostly works, but other comments at the beginning of the file are also removed :( I would also need the single line alternatives to all other cases like /** this */

Rots avatar Dec 09 '22 14:12 Rots

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Feb 08 '23 01:02 stale[bot]

Yes, still relevant, but no progress has been made

Rots avatar Feb 08 '23 17:02 Rots

@Rots : did you try to make your own header template definition ?

mathieucarbou avatar Feb 14 '23 08:02 mathieucarbou

Yes, but like I mentioned:

I'd like to add one liners, but the current custom configuration won't allow that complaining that firstLine and lastLine cannot be empty

Rots avatar Feb 14 '23 14:02 Rots