Looking for a way to force a task that has no input & output to run again on subsequent runs

@Lance if Gradle api is not designed to run a task twice per gradle invocation, can you please hint me into a good direction on this question? Force rerun a task by another task

I would be very grateful to you.

Thanks in advance