https://kotlinlang.org logo
Title
g

Gopal S Akshintala

05/14/2020, 2:25 PM
How to configure default gradle wrapper version to be used by Intellij, when creating new gradle project? (Currently it is using 6.1.1 and downloading it, although I have the latest version 6.3 on my machine)
d

Dariusz Kuc

05/14/2020, 2:28 PM
just run
gradle wrapper --gradle-version 6.3
g

Gopal S Akshintala

05/14/2020, 4:21 PM
yes, but that is annoying as it downloads a version which is not compatible with my Java version, and I have to configure all these
Wish there is an easy way to let intellij use my local gradle distribution
d

Dariusz Kuc

05/14/2020, 4:36 PM
🤷 maybe there is some global preference setting
a

adk

05/14/2020, 5:25 PM
Yes, this is annoying. You can specify the location of the gradle distribution in settings->Build,Execution,Deployment->Gradle->Use Gradle from to be you locally-installed distribution, but then it won't keep pace with any changes made in the gradle wrapper.
g

gildor

05/15/2020, 6:25 AM
You also can use
gradle init
task to create a new gradle project, it provides a few basic templates and allows to choose between groovy and kotlin for configs https://docs.gradle.org/current/userguide/build_init_plugin.html