Hi everyone, sorry if this has already been asked,...
# gradle
t
Hi everyone, sorry if this has already been asked, but a quick search didn't yield any meaningful result: I'm building a project in Kotlin using IntelliJ IDEA. On the right hand side I've got the Gradle pane, from which I can run the various Gradle tasks, such as compiling, running the tests, etc., and everything works fine. However, I'd like to be able to run those tasks from the command line. I remember from past projects that there used to be an executable shell script called
gradlew
in the project directory that I could use for that, but when I created my current project (a Kotlin/JS web-app) with the IntelliJ IDEA wizard (I'm using 2023.1, Community Edition) no
gradlew
script was created. Is this a bug? Or has something changed intentionally? Is there a way for me to add the
gradlew
script? Or has it changed and the way to do it now is something else altogether?
s
In your right-hand Gradle pane, if you run the
wrapper
task under “build setup”, it will create the
gradlew
script for you G
t
Thanks, @Sam, it works!
v
But it should have been there right away unless you deleted them
t
@Vampire, yes, that's what I expected too! I didn't delete anything after generating the project with the wizard. I guess it was a bug. I don't know if it's a one-time thing or if it's going to happen when I generate future projects too; it's not important enough for me at the moment to try and reproduce this, but if it happens again I'll report it.
👌 1