Skip to content

Commit

Permalink
Add: Extension function on 'Project' to easily configure the 'rootCov…
Browse files Browse the repository at this point in the history
…erage' extensions (#113)

This is especially helpful when using Kotlin (.kts) as language for build files.

Closes: #112
  • Loading branch information
Rolf-Smit authored Feb 6, 2025
1 parent 29beee5 commit 5ef57a1
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
package org.neotech.plugin.rootcoverage

import org.gradle.api.Project

fun Project.rootCoverage(configure: RootCoveragePluginExtension.() -> Unit) {
extensions.configure(RootCoveragePluginExtension::class.java, configure)
}

open class RootCoveragePluginExtension {

var generateCsv: Boolean = false
Expand Down

0 comments on commit 5ef57a1

Please sign in to comment.