polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [10/19] zest-java git commit: build: fix dependencies report
Date Sat, 24 Dec 2016 10:29:22 GMT
build: fix dependencies report


Project: http://git-wip-us.apache.org/repos/asf/zest-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-java/commit/a504947b
Tree: http://git-wip-us.apache.org/repos/asf/zest-java/tree/a504947b
Diff: http://git-wip-us.apache.org/repos/asf/zest-java/diff/a504947b

Branch: refs/heads/develop
Commit: a504947be544992102b007b7e8cbf2f707b78de1
Parents: d53d02b
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Sun Dec 18 01:42:27 2016 +0100
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Sun Dec 18 01:42:27 2016 +0100

----------------------------------------------------------------------
 .../groovy/org/apache/polygene/gradle/AllProjectsPlugin.groovy | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-java/blob/a504947b/buildSrc/src/main/groovy/org/apache/polygene/gradle/AllProjectsPlugin.groovy
----------------------------------------------------------------------
diff --git a/buildSrc/src/main/groovy/org/apache/polygene/gradle/AllProjectsPlugin.groovy
b/buildSrc/src/main/groovy/org/apache/polygene/gradle/AllProjectsPlugin.groovy
index 0edf1e2..07e3582 100644
--- a/buildSrc/src/main/groovy/org/apache/polygene/gradle/AllProjectsPlugin.groovy
+++ b/buildSrc/src/main/groovy/org/apache/polygene/gradle/AllProjectsPlugin.groovy
@@ -25,6 +25,7 @@ import org.gradle.api.Plugin
 import org.gradle.api.Project
 import org.gradle.api.plugins.JavaPluginConvention
 import org.gradle.api.tasks.compile.JavaCompile
+import org.gradle.api.tasks.diagnostics.DependencyReportTask
 import org.gradle.api.tasks.javadoc.Javadoc
 import org.gradle.api.tasks.testing.Test
 import org.gradle.api.tasks.testing.logging.TestExceptionFormat
@@ -157,9 +158,8 @@ class AllProjectsPlugin implements Plugin<Project>
   private static void configureDependencyReport( Project project )
   {
     project.plugins.apply 'project-report'
-    // TODO Fails with no task found
-    // def dependencyReport = project.tasks.getByName( 'dependencyReport' ) as DependencyReportTask
-    // dependencyReport.configurations = [ project.configurations.getByName( 'runtime' )
] as Set
+    def dependencyReport = project.tasks.getByName( 'dependencyReport' ) as DependencyReportTask
+    dependencyReport.configurations = [ project.configurations.getByName( 'runtime' ) ] as
Set
   }
 
   private static void configureHonker( Project project )


Mime
View raw message