ai.digital.integration.server.common.util.TaskUtil.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of integration-server-gradle-plugin Show documentation
Show all versions of integration-server-gradle-plugin Show documentation
The easy way to get custom setup for Deploy up and running
package ai.digital.integration.server.common.util
import org.gradle.api.Action
import org.gradle.api.Task
class TaskUtil {
companion object {
fun dontFailOnException(task: Task) {
task.actions = task.actions.map { action ->
Action {
try {
action.execute(task)
} catch (e: Exception) {
// ignore
}
}
}
}
}
}