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

ru.tinkoff.plugins.buildmetrics.internal.BuildMetricsFlowAction.kt Maven / Gradle / Ivy

The newest version!
package ru.tinkoff.plugins.buildmetrics.internal

import org.gradle.api.flow.BuildWorkResult
import org.gradle.api.flow.FlowAction
import org.gradle.api.flow.FlowParameters
import org.gradle.api.provider.Property
import org.gradle.api.services.ServiceReference
import org.gradle.api.tasks.Input

abstract class BuildMetricsFlowAction : FlowAction {

    interface Params : FlowParameters {

        @get:ServiceReference
        val buildMetricsService: Property

        @get:Input
        val buildWorkResult: Property
    }

    override fun execute(parameters: Params) {
        parameters.buildMetricsService.get().onBuildWorkResult(
            buildWorkResult = parameters.buildWorkResult.get()
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy