I would probably be amazed at complexity of this, if I never touched Java in life.
The things you’re describing are literally a matter of a bash script to stitch together javac, jar and a couple of Unix tools.
Gradle is a monstrosity and abomination against the world. The only reason it exists is to give job to devex engineers and I’m willing to die on the hill. Maybe if it was rewritten in something faster and less memory hungry I’d be able to tolerate all this needless complexity, but until this piece of shit stops hogging all my memory and CPU time – its place is in the dumpster.