How do I specify TestNG test time-out globally without XML?

Commit bed5765cb5e83c99e0d0cc06e26538528ff936bb removed TestNGOptions.timeOut as part of GRADLE-800 (Allow a listener to be notified as tests are executed) more than five years ago – without an explanation in the commit as to why those are related to the task.

Is there a way to quickly specify a timeout value now? It seems that it should be possible by providing suiteXmlFiles and configuring it there, but that seems to be an overkill just for this.