How to accept TOS programatically when running build scan through maven

I added the maven extension, but my build hangs at the end cause it wants me to type ‘yes’ to accept the TOS.
how do i do it programatically so i can run the build scan in CI?

You can add some configuration to your gradle-enterprise.xml, see here https://docs.gradle.com/enterprise/maven-extension/#accept_the_scans_gradle_com_terms_of_service