No but you can just use ./mvnw instead of installing it. I have never had to install gradle as a package on my computer in my entire lifetime. I always used ./gradlew.
It's an additional install, like the jdk.
Typically on a brand new os install the equivalent of these steps would be done: