ru.tinkoff.plugins.buildmetrics.internal.BuildMetricsFlowAction.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of build-metrics Show documentation
Show all versions of build-metrics Show documentation
A plugin for collecting build metrics from Gradle projects.
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()
)
}
}