From d80fa4f75f0fcbb46697b8b9258c889577465935 Mon Sep 17 00:00:00 2001 From: Rajan Maurya Date: Tue, 23 Jan 2018 01:34:17 +0530 Subject: [PATCH] Fix: Travis warning and uses ConfigurableReport.setDestination(File) instead ConfigurableReport.setDestination(Object) method Fix: The ConfigurableReport.setDestination(Object) method has been deprecated and is scheduled to be removed in Gradle 5.0. uses the method ConfigurableReport.setDestination(File) instead. --- config/quality/quality.gradle | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/quality/quality.gradle b/config/quality/quality.gradle index 3d59d086..f6b45f9b 100644 --- a/config/quality/quality.gradle +++ b/config/quality/quality.gradle @@ -31,7 +31,7 @@ task checkstyle(type: Checkstyle, group: 'Verification', description: 'Runs code reports { xml.enabled = true xml { - destination "$reportsDir/checkstyle/checkstyle.xml" + destination file("$reportsDir/checkstyle/checkstyle.xml") } } @@ -57,10 +57,10 @@ task findbugs(type: FindBugs, xml.enabled = true html.enabled = false xml { - destination "$reportsDir/findbugs/findbugs.xml" + destination file("$reportsDir/findbugs/findbugs.xml") } html { - destination "$reportsDir/findbugs/findbugs.html" + destination file("$reportsDir/findbugs/findbugs.html") } } @@ -81,10 +81,10 @@ task pmd(type: Pmd, group: 'Verification', description: 'Inspect sourcecode for xml.enabled = true html.enabled = true xml { - destination "$reportsDir/pmd/pmd.xml" + destination file("$reportsDir/pmd/pmd.xml") } html { - destination "$reportsDir/pmd/pmd.html" + destination file("$reportsDir/pmd/pmd.html") } } -} \ No newline at end of file +}