can you please elaborate <@U0QBCLV62>
# gradle
k
can you please elaborate @bamboo
b
k
if thats the case then why the default
build.gradle.kts
uses
buildscript
instead of
plugins
🤔
m
how did you generate the project? i think the kotlin plugin in intellij has not been updated in a while to support newer
build.gradle.kts
versions as well as the Kotlin gradle plugins being published to the Gradle Plugin Portal
b
What’s the default
build.gradle.kts
?
k
the one that is generated when a new kotlin/gradle dsl project is created from intellij 2017.3.1
b
that’s probably because they never got around to updating the project template, please open an issue against the Kotlin YouTrack
in the
kotlin-dsl
samples we recommend the use of the
plugins
block
k
okay also the default wrapper is somehow set to gradle 4.0 bin and when I tried it with gradle 4.4 all it shows error that the version is not available can you please tell am I doing something wrong here?
b
Can you please expand on _ when I tried it with gradle 4.4_?
k
I updated the wrapper properties url and replaced 4.0-bin to 4.4-all
b
Ok, the safe way is:
Copy code
./gradlew wrapper --gradle-version 4.4 --distribution-type all
👍 1
k
but still it stated downloading the gradle zip but when download finished it said that version does not exist or something similar 😅 I also tried using offline version of the 4.4 but it too failed.
b
you have to run the command above with the working Gradle version and then it will update your wrapper to the 4.4