Skip to content

Commit

Permalink
add task group and description
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec committed Feb 3, 2021
1 parent 819d3c5 commit b8463b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/CoverallsJacocoPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class CoverallsJacocoPlugin : Plugin<Project> {
project.extensions.create("coverallsJacoco", CoverallsJacocoPluginExtension::class.java)

project.task("coverallsJacoco") {
it.group = "verification"
it.description = "Reports coverage to coveralls"
it.doLast {
val envGetter = { v: String -> System.getenv(v)?.ifBlank { null } }
CoverallsReporter(envGetter).report(project)
Expand Down

0 comments on commit b8463b2

Please sign in to comment.