Skip to content

Repair license header settings #15

@sjahreis

Description

@sjahreis

Describe the bug
License headers are not checked in frontend/src directory. Furthermore the license header's content isn't checked against the configured settings (like inception year)

Expected behavior

  • The license headers for files in frontend/src directory are checked.
  • The license header's content is checked.

Fix
Already fixed using the following snippet:

<!-- LICENSE -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>license-maven-plugin</artifactId>
                <version>2.0.0</version>
                <configuration>
                    <licenseName>apache_v2</licenseName>
                    <licenseFile>${project.basedir}/LICENSE</licenseFile>
                    <inceptionYear>${project.inceptionYear}</inceptionYear>
                    <projectName>${project.artifactId}</projectName>
                    <copyrightOwners>linked-planet GmbH</copyrightOwners>
                    <failOnMissingHeader>true</failOnMissingHeader>
                    <failOnNotUptodateHeader>true</failOnNotUptodateHeader>
                    <roots>
                        <root>src</root>
                        <root>target/generated-sources</root>
                        <root>frontend/src</root>
                    </roots>
                    <excludes>
                        <exclude>**/*.min.js</exclude>
                        <exclude>**/*.js</exclude>
                        <exclude>**/plugin*.properties</exclude>
                        <exclude>**/version*.properties</exclude>
                        <exclude>**/log4j.properties</exclude>
                        <exclude>**/kaptKotlin/**/*</exclude>
                    </excludes>
                    <excludedScopes>provided,test</excludedScopes>
                </configuration>
                <executions>
                    <execution>
                        <id>license-check-file-header</id>
                        <phase>validate</phase>
                        <goals>
                            <goal>check-file-header</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions