Skip to content

Commit 269dce9

Browse files
committed
Add: Extension function on 'Project' to easily configure the 'rootCoverage' extensions
This is especially helpful when using Kotlin (.kts) as language for build files. Closes: #112
1 parent 29beee5 commit 269dce9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugin/src/main/kotlin/org/neotech/plugin/rootcoverage/RootCoveragePluginExtension.kt

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
package org.neotech.plugin.rootcoverage
22

3+
import org.gradle.api.Project
4+
5+
fun Project.rootCoverage(configure: RootCoveragePluginExtension.() -> Unit) {
6+
extensions.configure(RootCoveragePluginExtension::class.java, configure)
7+
}
8+
39
open class RootCoveragePluginExtension {
410

511
var generateCsv: Boolean = false

0 commit comments

Comments
 (0)