From notifications-return-5001-archive-asf-public=cust-asf.ponee.io@freemarker.incubator.apache.org Thu Feb 8 20:54:01 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 85F8A18064F for ; Thu, 8 Feb 2018 20:54:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 75292160C4A; Thu, 8 Feb 2018 19:54:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BAB2F160C34 for ; Thu, 8 Feb 2018 20:54:00 +0100 (CET) Received: (qmail 16965 invoked by uid 500); 8 Feb 2018 19:54:00 -0000 Mailing-List: contact notifications-help@freemarker.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@freemarker.incubator.apache.org Delivered-To: mailing list notifications@freemarker.incubator.apache.org Received: (qmail 16956 invoked by uid 99); 8 Feb 2018 19:53:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Feb 2018 19:53:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 660F41A0063 for ; Thu, 8 Feb 2018 19:53:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.231 X-Spam-Level: X-Spam-Status: No, score=-4.231 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id gz0GwKaFL0g7 for ; Thu, 8 Feb 2018 19:53:55 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 71CDD5F2A8 for ; Thu, 8 Feb 2018 19:53:54 +0000 (UTC) Received: (qmail 16876 invoked by uid 99); 8 Feb 2018 19:53:53 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Feb 2018 19:53:53 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id EEBE5DFC32; Thu, 8 Feb 2018 19:53:52 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ddekany@apache.org To: notifications@freemarker.incubator.apache.org Date: Thu, 08 Feb 2018 19:53:53 -0000 Message-Id: In-Reply-To: <4bf82c13132e4eeb9253440afe1cf1c8@git.apache.org> References: <4bf82c13132e4eeb9253440afe1cf1c8@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [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 Authored: Thu Feb 8 20:53:29 2018 +0100 Committer: ddekany 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