Skip to content

License header forces same year for all source files #183

Closed
@chrisbanes

Description

@chrisbanes

My IDE correctly auto generated a new copyright header with the year 2018, whereas my spotless license header still has 2017. If I change my spotless file to 2018, all other source files have 2018 applied which isn't what I want.

Any ideas? This might be working as intended, but it would be nice if either:
a) Spotless exposes common embed tags similar to IntelliJ (year, author, etc)

b) We can embed regex (for check) with a default value (for apply) in the header. Maybe something like:
Copyright blah $([0-9]{4}, 2018)

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