You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2015/06/29 14:58:29 UTC

incubator-groovy git commit: upgrade to rat plugin 0.1.3

Repository: incubator-groovy
Updated Branches:
  refs/heads/master 53c6570ad -> 3225894b7


upgrade to rat plugin 0.1.3


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/3225894b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/3225894b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/3225894b

Branch: refs/heads/master
Commit: 3225894b75275226cd62e7c492cb5c7d35713b60
Parents: 53c6570
Author: paulk <pa...@asert.com.au>
Authored: Mon Jun 29 22:58:18 2015 +1000
Committer: paulk <pa...@asert.com.au>
Committed: Mon Jun 29 22:58:18 2015 +1000

----------------------------------------------------------------------
 build.gradle          |  2 +-
 gradle/quality.gradle | 21 ++++++++++-----------
 2 files changed, 11 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/3225894b/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 8dd9cb8..651d6eb 100644
--- a/build.gradle
+++ b/build.gradle
@@ -39,7 +39,7 @@ buildscript {
         classpath 'me.champeau.gradle:gradle-javadoc-hotfix-plugin:0.1'
         //classpath 'me.champeau.gradle:japicmp-gradle-plugin:0.1.1'
         //classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0'
-        classpath "gradle.plugin.org.nosphere.apache:creadur-rat-gradle:0.1.2"
+        classpath "gradle.plugin.org.nosphere.apache:creadur-rat-gradle:0.1.3"
     }
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/3225894b/gradle/quality.gradle
----------------------------------------------------------------------
diff --git a/gradle/quality.gradle b/gradle/quality.gradle
index 8bb678a..f773894 100644
--- a/gradle/quality.gradle
+++ b/gradle/quality.gradle
@@ -138,22 +138,21 @@ allprojects {
             html.enabled = true
         }
     }
-
+}
+subprojects { sp ->
     rat {
-        // Input directory, defaults to the project's root directory
-        inputDir = project.file( 'src' )
-
-        // XML and HTML reports directory, defaults to 'build/reports/rat'
-        reportDir = project.file( "$buildDir/reports/rat" )
-
-        // List of exclude directives, defaults to none
-        excludes = [ '**/target/**', '**/.gradle/**', '**/assets/**', '**/*.adoc' ]
-
-        // Fail the build on rat errors, defaults to true
+        inputDir = sp.buildDir.absolutePath
+        excludes = [ 'target/**', '.gradle/**', '**/assets/**' ]
         failOnError = false
     }
 }
 
+rat {
+    excludes = [ 'subprojects/**', 'benchmark/**', 'config/**', '**/wrapper/**', '**/target/**', 'licenses/**', 'gradlew*',
+                 '**/*.ipr',  '**/*.iml', '**/*.iws', '**/.gradle/**', '**/assets/**', '**/*.adoc', '**/*.gif', '**/*.png', '**/*.icns' ]
+    failOnError = false
+}
+
 apply from: 'gradle/jacoco/jacoco.gradle'
 // Temporarily disabled because of conflict
 //apply from: 'gradle/binarycompatibility.gradle'