Miha Markic
11/14/2025, 8:12 AMMiha Markic
11/14/2025, 8:13 AM@Suppress("UnstableApiUsage")
abstract class SoundPlay : FlowAction<FlowParameters> {
override fun execute(parameters: FlowParameters) {
println("something happened")
}
}
@Suppress("UnstableApiUsage")
abstract class SoundFeedbackPlugin : Plugin<Settings> {
@get:Inject
protected abstract val flowScope: FlowScope
override fun apply(settings: Settings) {
println("apply")
this.flowScope.always(
SoundPlay::class.java,
{
println("configure")
})
}
}Miha Markic
11/14/2025, 8:14 AMMiha Markic
11/14/2025, 8:14 AMMiha Markic
11/14/2025, 8:53 AMVampire
11/14/2025, 9:11 AMAutoCloseable and OperationCompletionListener and do your logic in the close() method. As it is an operation completion listener it is needed until the last task finished and so it will be closed somewhere between the last task finished and the end of the build.Miha Markic
11/14/2025, 9:11 AMMiha Markic
11/14/2025, 9:12 AMMiha Markic
11/14/2025, 9:12 AM