:wave: Hello, team! I wanted to ask, is there some...
# community-support
t
👋 Hello, team! I wanted to ask, is there some way to run task after build is finished? I need to execute one task before build and one task after build. For the before build task I'm using
Copy code
preBuildProvider.dependsOn(preBuildLogic)
which is working great but I can't find anything suitable for a task run after build is finished (regardless error / success)
v
If it really has to be a task, you probably need to do something like
tasks.configureEach { finalizedBy(yourEndTask) }
or similar. If it is just "something you need to do on every build end", there are more appropriate ways.