gradle configurations are changed (this was a prerequisite for a gradle version 6 to 7 upgrade):
'compile' is replaced with 'implementation'
'testCompile' is replaced with 'testImplementation'
I did quite a few of tests with both .exe and .jar file on Windows (and I will do the same on Linux/Mac asap)
keep in mind that this change is quite large (on the inside, that is, but on the outside things should run in a same way given a fact that project dependencies versions are not changed)
details: