All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kotlinx.kover.gradle.plugin.tasks.reports.KoverBinaryTask.kt Maven / Gradle / Ivy

There is a newer version: 0.9.0-RC
Show newest version
/*
 * Copyright 2017-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
 */

package kotlinx.kover.gradle.plugin.tasks.reports

import org.gradle.api.file.*
import org.gradle.api.tasks.*

@CacheableTask
internal abstract class KoverBinaryTask : AbstractKoverReportTask() {
    @get:OutputFile
    internal abstract val file: RegularFileProperty

    @TaskAction
    fun generate() {
        val binary = file.get().asFile
        binary.parentFile.mkdirs()
        tool.get().binaryReport(binary, context())
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy