Skip to content

Commit

Permalink
Reduced scope of KotlinTarget.aggregateTestCoverage to `KotlinJvmTa…
Browse files Browse the repository at this point in the history
…rget`
  • Loading branch information
gmazzo committed Nov 26, 2024
1 parent 3ce120a commit 9261cb2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import org.gradle.api.attributes.Usage
import org.gradle.api.plugins.ExtensionAware
import org.gradle.api.provider.Property
import org.jetbrains.kotlin.gradle.plugin.KotlinTarget
import org.jetbrains.kotlin.gradle.targets.jvm.KotlinJvmTarget

const val USAGE_TEST_AGGREGATION = "test-aggregation"

Expand All @@ -29,5 +30,5 @@ val BuildType.aggregateTestCoverage: Property<Boolean>
val ProductFlavor.aggregateTestCoverage: Property<Boolean>
get() = extensions.getByName<Property<Boolean>>(::aggregateTestCoverage.name)

val KotlinTarget.aggregateTestCoverage: Property<Boolean>
val KotlinJvmTarget.aggregateTestCoverage: Property<Boolean>
get() = (this as ExtensionAware).extensions.getByName<Property<Boolean>>(::aggregateTestCoverage.name)

0 comments on commit 9261cb2

Please sign in to comment.