After we refactored our JUnit feature, there is no need for build-time initialization of any JUnit class, for JDKs newer than JDK21. However, for JDKs <= 21 we still need to maintain list of classes that should be explicitly marked for build-time init.
In order to react on time, we can set a periodic GitHub job that would run all our JUnit tests with:
- latest available JUnit - either with a pre-release or snapshot release
- JDK 17 and 21 (as this check is only required for JDKs <= 21)
If we see any failure, related to the missing build time initialization, we should update the list.