About the customization of wrapper

problem description

case:
using gradle for the first time using the gradle wrapper command (I don"t have any files at this time)
built successfully

build.gradle

Cannot add task "wrapper" as a task with that name already exists.

question:

didn"t wrapper overwrite the original task? Why does it already exist? How to solve?

May.31,2022

after gradle 4. 8, it is no longer allowed to override built-in build tasks: wrapper, init, help, tasks, projects, buildEnvironment, components, dependencies, dependencyInsight, dependentComponents, model, properties.

Menu