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.