GEODE 608: Initial cut at adding RAT to build Add the RAT plugin to check for license headers in source files. This is a first pass that excludess generated files, typical IDE files, etc. Create the report using `gradle rat`. As GEODE-18 continues we can update the excludes list appropriately. Eventually this task should pass.
Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/f133ff1c Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/f133ff1c Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/f133ff1c Branch: refs/heads/feature/GEODE-291 Commit: f133ff1c86be467bd4ecda5f8d24b7fe969531b7 Parents: a5906e5 Author: Anthony Baker <[email protected]> Authored: Sat Nov 28 08:07:31 2015 -0800 Committer: Anthony Baker <[email protected]> Committed: Thu Dec 10 09:44:56 2015 -0800 ---------------------------------------------------------------------- build.gradle | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/f133ff1c/build.gradle ---------------------------------------------------------------------- diff --git a/build.gradle b/build.gradle index 0c94573..6f5c2a3 100755 --- a/build.gradle +++ b/build.gradle @@ -5,11 +5,31 @@ buildscript { } } dependencies { + classpath "gradle.plugin.org.nosphere.apache:creadur-rat-gradle:0.2.0" classpath "org.ajoberstar:gradle-git:1.3.2" } } apply plugin: 'wrapper' +apply plugin: "org.nosphere.apache.rat" + +rat { + excludes = [ + '.git/**', + '**/.gitignore', + '**/.gradle/**', + '.gradle', + '**/build/**', + '**/.project', + '**/.classpath', + '**/.settings/**', + '**/build-eclipse/**', + '*.iml', + '.idea/**', + + '**/doc-files/*.fig' + ] +} // Load all properties in dependency-version.properties as project properties, so all projects can read them Properties dependencyVersions = new Properties()
