Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail build when license headers are omitted from a file #27

Closed
snkinard opened this issue Jul 1, 2013 · 1 comment
Closed

Fail build when license headers are omitted from a file #27

snkinard opened this issue Jul 1, 2013 · 1 comment

Comments

@snkinard
Copy link
Contributor

snkinard commented Jul 1, 2013

From @shawnsmith:

It's really common to forget to keep license headers up-to-date as code evolves. So when you're adding them to all the files I strongly suggest you look into something like http://creadur.apache.org/rat/ to fail the build when license headers are omitted. For example:

   <build>
      <plugins>
        <plugin>
          <groupId>org.apache.rat</groupId>
          <artifactId>apache-rat-plugin</artifactId>
          <version>0.9</version>
          <configuration>
            <excludes>
            <exclude>.git/**</exclude>
            <exclude>.gitignore</exclude>
            <exclude>**/resources/*.txt</exclude>
            </excludes>
          </configuration>
          <executions>
            <execution>
              <id>rat-check</id>
              <phase>test</phase>
              <goals>
                <goal>check</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
  ...

See also http://creadur.apache.org/rat/apache-rat-plugin/examples/custom-license.html

@ghost ghost assigned snkinard Jul 3, 2013
@snkinard
Copy link
Contributor Author

snkinard commented Jul 3, 2013

Starting work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant