Skip to content

How to enable linebreak between license header and delimiter #2186

Closed
@snuyanzin

Description

@snuyanzin

we are using maven (3.8.6+)
and spotless maven plugin 2.33.0

The configuration looks like

<configuration>
    <java>
        <googleJavaFormat>
            <version>1.15.0</version>
            <style>AOSP</style>
        </googleJavaFormat>
...
        <licenseHeader>
            <content>${spotless.license.header}</content>
            <delimiter>${spotless.delimiter}</delimiter>
        </licenseHeader>
    </java>
</configuration>

Where ${spotless.delimiter} is just package
The problem is that
after applying it looks like

// LICENSE
package ...

and we want to have a line break between the license and package
like

// LICENSE

package ...

an attempt to insert extra line breaks into LICENSE doesn't help.
Is there a way to make it possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions