How to set up a Gradle project in IntelliJ IDEA to specify the default gradle-wrapper version?

problem description

Gradle project is established in IntelliJ IDEA. The gradle version specified in the gradle/wrapper/gradle-wrapper.properties file has always been 4.10.2. My local gradle has been updated to 5.2.1. How can I specify the latest version?

gradle/wrapper/gradle-wrapper.properties

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

the environmental background of the problems and what methods you have tried

macOS Mojave,Gradle 5.2.1 Magi IntelliJ IDEA 2018.3.3 Ultimate Edition

you can update the gradle-wrapper version manually with the following command

if you have tried it yourself.
./gradlew wrapper --gradle-version 5.2.1

what result do you expect? What is the error message actually seen?

how do I specify the gradle-wrapper version when creating a project? Where can I set the default version? I don"t want to manually specify a new version after the project has been created

Jun.20,2022

the current version of IDEA is determined by the IDEA-bound Gradle plug-in, which has been raised in IntelliJ's issue tracker and has been followed continuously.

https://youtrack.jetbrains.co...

the answer comes from my question on Stack Overflow

idea" rel=" nofollow noreferrer "> https://stackoverflow.com/que...

Menu