polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [1/6] polygene-java git commit: build: unset task group on code coverage implementation detail tasks
Date Sat, 27 May 2017 09:45:55 GMT
Repository: polygene-java
Updated Branches:
  refs/heads/develop c8d8f75bc -> 50bd2c930


build: unset task group on code coverage implementation detail tasks

So they don’t pollute the ./gradlew tasks output


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

Branch: refs/heads/develop
Commit: 86f8fc1e040dbacdc0b0cbe520129dcde2b29bf6
Parents: c8d8f75
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Sat May 27 10:15:31 2017 +0200
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Sat May 27 10:15:31 2017 +0200

----------------------------------------------------------------------
 .../org/apache/polygene/gradle/code/CodePlugin.groovy     | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/86f8fc1e/buildSrc/src/main/groovy/org/apache/polygene/gradle/code/CodePlugin.groovy
----------------------------------------------------------------------
diff --git a/buildSrc/src/main/groovy/org/apache/polygene/gradle/code/CodePlugin.groovy b/buildSrc/src/main/groovy/org/apache/polygene/gradle/code/CodePlugin.groovy
index eb605c9..a912b85 100644
--- a/buildSrc/src/main/groovy/org/apache/polygene/gradle/code/CodePlugin.groovy
+++ b/buildSrc/src/main/groovy/org/apache/polygene/gradle/code/CodePlugin.groovy
@@ -19,7 +19,6 @@ package org.apache.polygene.gradle.code
 
 import groovy.transform.CompileStatic
 import org.apache.polygene.gradle.BasePlugin
-import org.apache.polygene.gradle.TaskGroups
 import org.apache.polygene.gradle.dependencies.DependenciesDeclarationExtension
 import org.apache.polygene.gradle.dependencies.DependenciesPlugin
 import org.gradle.api.Action
@@ -35,6 +34,7 @@ import org.gradle.api.tasks.testing.Test
 import org.gradle.api.tasks.testing.logging.TestExceptionFormat
 import org.gradle.jvm.tasks.Jar
 import org.gradle.testing.jacoco.plugins.JacocoPluginExtension
+import org.gradle.testing.jacoco.tasks.JacocoCoverageVerification
 import org.gradle.testing.jacoco.tasks.JacocoReport
 
 @CompileStatic
@@ -175,9 +175,11 @@ class CodePlugin implements Plugin<Project>
     project.plugins.apply 'jacoco'
     def jacoco = project.extensions.getByType JacocoPluginExtension
     jacoco.toolVersion = dependencies.buildToolsVersions.jacoco
-    project.tasks.withType( JacocoReport ) { JacocoReport task ->
-      task.group = TaskGroups.VERIFICATION
-      task.description = 'Generates test coverage report.'
+    project.tasks.withType( JacocoReport ) { Task task ->
+      task.group = null
+    }
+    project.tasks.withType( JacocoCoverageVerification ) { Task task ->
+      task.group = null
     }
   }
 


Mime
View raw message