You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ab...@apache.org on 2015/11/28 17:11:15 UTC

incubator-geode git commit: GEODE 608: Initial cut at adding RAT to build

Repository: incubator-geode
Updated Branches:
  refs/heads/feature/GEODE-608 [created] f8953d0b3


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/f8953d0b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/f8953d0b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/f8953d0b

Branch: refs/heads/feature/GEODE-608
Commit: f8953d0b30771dd6c88d2b00bf9bb933ce994d14
Parents: b8fb18a
Author: Anthony Baker <ab...@pivotal.io>
Authored: Sat Nov 28 08:07:31 2015 -0800
Committer: Anthony Baker <ab...@pivotal.io>
Committed: Sat Nov 28 08:07:31 2015 -0800

----------------------------------------------------------------------
 build.gradle | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/f8953d0b/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 991488b..b2d4e0b 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()