[GOBBLIN-355] Enable Rat plugin in gradle build
Project: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/commit/f2e7c064 Tree: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/tree/f2e7c064 Diff: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/diff/f2e7c064 Branch: refs/heads/0.12.0 Commit: f2e7c06478d1036a30dee4b8e65b5774714e998d Parents: 43a1668 Author: Abhishek Tiwari <[email protected]> Authored: Wed Jan 3 16:44:03 2018 +0530 Committer: Abhishek Tiwari <[email protected]> Committed: Wed Jan 3 16:44:03 2018 +0530 ---------------------------------------------------------------------- build.gradle | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-gobblin/blob/f2e7c064/build.gradle ---------------------------------------------------------------------- diff --git a/build.gradle b/build.gradle index b30f7c1..74a64e7 100644 --- a/build.gradle +++ b/build.gradle @@ -129,6 +129,9 @@ apply from: 'gradle/scripts/sourcesJar.gradle' apply from: 'gradle/scripts/mavenPublishing.gradle' apply from: 'gradle/scripts/javaVersionCheck.gradle' + +apply from: 'gradle/scripts/rat.gradle' + task wrapper(type: Wrapper) { gradleVersion = '2.13' } /* @@ -143,3 +146,69 @@ allprojects { } } } + +rat { + excludes = [ + '**/.git/**', + '**/.gradle/**', + '**/.project', + '**/.factorypath', + '**/.settings/**', + '**/.classpath', + '**/*.iml', + '**/*.iws', + '**/*.ipr', + '**/.rubyversion', + 'gradle/wrapper/**', + '.reviewboardrc', + 'gradlew', + '**/changes.md', + '**/README.md', + '**/.ruby-version', + 'CONTRIBUTORS', + 'RELEASE.md', + '**/.DS_Store/**', + '**/.gitignore', + '**/build/**', + '**/target/**', + '**/bin/**', + '**/test-output/**', + '**/Gemfile.lock', + '**/*.tsv', + '**/*.csv', + '**/*.svg', + '**/*.groovy', + '**/*.yml', + '**/*.properties', + '**/*.conf', + '**/*.xml', + '**/*.md', + '**/*.json', + '**/*.avsc', + '**/*.ddl', + '**/*.dml', + '**/*.txt', + '**/*.pull', + '**/*.job', + '**/Dockerfile', + '**/file*', + '**/*.epf', + '**/*.pdsc', + '**/*.yml', + '**/*.inc', + '**/*.py', + '**/*.gradle', + '**/*.css', + '**/*.sh', + '**/META-INF/**', + '**/*.avro', + '**/*.txt.*', + '**/*.json.*', + '**/migrationConfig', + '**/*.key', + '**/grok/**', + '**/WebmasterPerformanceTuningMetrics', + '**/*.template', + '**/package-list' + ] +}
