The java.lang.NoClassDefFoundError is the real exception here. You’re likely not making it to the RuntimeException because you’re missing a class you need on the classpath when the test runs. It might be a class used by setupEnvironment() or even BaseClass itself that missing from the classpath. Your dependencies block would be useful to show to see to help reveal what exactly is wrong.
I’ll answer to myself. BaseClass was really in the classpath, but for some reason it can not be loaded because of exception in initialization block. In order to see nested exception
"exceptionFormat = ‘full’ "made this job