What is Java gradle and maven?

I would like to know what is gradle and maven. Is same thing like nuget package or it’s asp.net web.config.

Both are build tools that help manage dependencies. You generally need something like them to build anything at scale.

As for how I understand it, this is pretty much NuGet equivalent.
I did work a bit with Maven and NuGet is way simpler. But this is for sure a thing to know if you go swim in the Java sea.