Skip to content

Commit

Permalink
Extended org.gradle.api.Task in KoverReport
Browse files Browse the repository at this point in the history
To use pattern
```
tasks.withType<KoverReport>().configureEach {
    dependsOn("otherTask")
}
```
 it is necessary that all interfaces for Kover tasks inherit the `org.gradle.api.Task` interface

Resolves #338
  • Loading branch information
shanshin committed Mar 13, 2024
1 parent 8f6bbb6 commit d978cb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kover-gradle-plugin/api/kover-gradle-plugin.api
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public abstract interface class kotlinx/kover/gradle/plugin/dsl/tasks/KoverHtmlR
public abstract interface class kotlinx/kover/gradle/plugin/dsl/tasks/KoverLogReport : kotlinx/kover/gradle/plugin/dsl/tasks/KoverReport {
}

public abstract interface class kotlinx/kover/gradle/plugin/dsl/tasks/KoverReport {
public abstract interface class kotlinx/kover/gradle/plugin/dsl/tasks/KoverReport : org/gradle/api/Task {
}

public abstract interface class kotlinx/kover/gradle/plugin/dsl/tasks/KoverVerifyReport : kotlinx/kover/gradle/plugin/dsl/tasks/KoverReport {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

package kotlinx.kover.gradle.plugin.dsl.tasks

import org.gradle.api.Task

/**
* Common interface for all Kover report tasks.
*/
interface KoverReport
interface KoverReport: Task

/**
* Interface for Kover XML report generation tasks.
Expand Down

0 comments on commit d978cb5

Please sign in to comment.