freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject [2/2] incubator-freemarker-online-tester git commit: Added rat task to build.gradle
Date Thu, 08 Feb 2018 19:53:53 GMT
Added rat task to build.gradle


Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/commit/b96fa9c2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/tree/b96fa9c2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/diff/b96fa9c2

Branch: refs/heads/master
Commit: b96fa9c2d71750221810cd3bfd1154c66c58b684
Parents: ef79502
Author: ddekany <ddekany@apache.org>
Authored: Thu Feb 8 20:53:29 2018 +0100
Committer: ddekany <ddekany@apache.org>
Committed: Thu Feb 8 20:53:29 2018 +0100

----------------------------------------------------------------------
 build.gradle        | 26 ++++++++++++++++++++++++++
 dependencies.gradle |  5 ++++-
 2 files changed, 30 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/b96fa9c2/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 25018fe..6b6e39a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -50,6 +50,10 @@ buildscript {
     }
 }
 
+configurations {
+    rat
+}
+
 dependencies {
     compile libraries.dropwizard
     compile libraries.dropwizard_views
@@ -66,6 +70,8 @@ dependencies {
     testCompile libraries.mockito
     testCompile libraries.hamcrest
     testCompile libraries.jersey_grrizle
+    
+    rat libraries.rat
 }
 
 compileJava {
@@ -106,5 +112,25 @@ jacocoTestReport {
     }
 }
 
+task rat {
+    doLast {
+        ant.taskdef(
+                name: 'ratReport', classname: 'org.apache.rat.anttasks.Report',
+                classpath: configurations.rat.asPath)
+        ant.ratReport(reportFile: "build/rat-report.txt") {
+            fileset(dir: "") {
+                exclude(name: "build/**")
+                exclude(name: "bin/**")
+                exclude(name: "out/**")
+                exclude(name: "ide-dependencies/**")
+                exclude(name: ".*")
+                exclude(name: ".*/**")
+            }
+        }
+    }
+    
+    project.logger.lifecycle('Rat reports will be written into build/rat-report.txt')
+}
+
 check.dependsOn jacocoTestReport
 build.dependsOn shadowJar

http://git-wip-us.apache.org/repos/asf/incubator-freemarker-online-tester/blob/b96fa9c2/dependencies.gradle
----------------------------------------------------------------------
diff --git a/dependencies.gradle b/dependencies.gradle
index abfc7d2..c7fa0d2 100644
--- a/dependencies.gradle
+++ b/dependencies.gradle
@@ -45,5 +45,8 @@ ext.libraries = [
         junit: "junit:junit-dep:4.11",
         mockito: "org.mockito:mockito-core:1.9.0",
         hamcrest: "org.hamcrest:hamcrest-library:1.3",
-        jersey_grrizle: "org.glassfish.jersey.test-framework.providers:jersey-test-framework-provider-grizzly2:$jeresy_version"
+        jersey_grrizle: "org.glassfish.jersey.test-framework.providers:jersey-test-framework-provider-grizzly2:$jeresy_version",
+        
+        // Build:
+        rat: "org.apache.rat:apache-rat-tasks:0.12"
 ]
\ No newline at end of file


Mime
View raw message