How do I check/update ... I'm using gradle wrapper...
# gradle
d
How do I check/update ... I'm using gradle wrapper and intellij ultimate
c
./gradlew -version
a
gradle wrapper --gradle-version x.y
d
3.1 😢
a
you can upgrade using that command
d
Thanks!!
To which version?
a
the latest, 4.1
c
./gradlew wrapper --gradle-version=4.1 --distribution-type=all
I recommend always doing
--distribution-type=all
on developers' machines because it helps IDE to help you to write the build scripts.
a
Copy code
task wrapper(type: Wrapper) {
    gradleVersion = '4.1'
    distributionType = Wrapper.DistributionType.ALL
}
in the build.gradle achieves the same
d
Did gradlew wrapper, opened build.gradle.kts file, but I don't see completion and error about plugins not having lambda param... is it because I still have build.gradle (until I tranfer its contents...)
I should rename it?
Also, there is no buildscript {} ?
a
rename it and also check intellij version, older versions doesnt support gradle build scripts in koltin
d
2017.2.3
Oh now it caught on, I guess it takes a bit of time for the IDE to catch the file...?
Thanks!
c
I've found that easiest way for me was creating an empty project with build.gradle.kts, transferring full build.gradle config there bit by bit, then renaming build.gradle, copying build.gradle.kts to the real project and re-importing from it.
d
I would've suggested editing gradle.properties in gradle folder of your project, but that seems to be much simpler
d
There's so much to learn, I would have loved a decent step-by-step tutorial about the differences between the two instead of all those examples in the repo... I guess for now I'm switching back to regular old gradle 😢
Not that I didn't try... Thanks anyways, I hope I'll get back to it soon 😇