You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by dd...@apache.org on 2018/02/08 19:53:53 UTC
[2/2] incubator-freemarker-online-tester git commit: Added rat task
to build.gradle
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 <dd...@apache.org>
Authored: Thu Feb 8 20:53:29 2018 +0100
Committer: ddekany <dd...@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