That’s not a question of Gradle version, but of the build you are running.
Each build can define a task called install by just writing one line in the build script.
The task will then just not do anything.
You can also apply some plugin that adds an install task to a build with some semantic, but that is totally up to the author of a build script.
No Gradle version will by default add any task to any build besides the most basic utility tasks like tasks, or projects.
If this is a foreign build you want to run, look at its documentation how to run it or ask the author.
If you are trying to create a build, you should maybe look at the user guide and sample projects.