Maven fail safe plugin is not working with gradle run

I am trying to rerun the failed test scenarios from serenity with cucumber. For the retry I am using maven fail safe plugin

Configured below properties in


None of them worked with gradle. The same is worked with Maven.

I’m not sure what you are asking.
Why and how should a Maven plugin work in any way in a Gradle build?
Maybe you are after this plugin: Gradle - Plugin: org.gradle.test-retry?