Explicit annotation Suppress-Static-InitializationFor required in jUnit


I am migrating a multi-module Maven project to Gradle 6.4.1

I have made considerable progress - but stumped on the point below.

jUnit in Maven build - all pass.
In Gradle they some of the jUnit pass if and only if the jUnit is explicitly annotated with @SuppressStaticInitializationFor(…)

This explicit annotation is not required in Maven.

  • as nothing shows up during the Maven build process.
    (At aleast it is seemingly not required - unless I am overlooking something)

I need a technical convincing answer why that annotation should be used; even if it is not required in Maven.

Posting in this forum as I am doing a Maven to Gradle migration and not editing the jUnit.