gradle script parameters / arguments not working
I just updated to 18.3 and gradle tasks will not use arguments/script parameters specified in the run configuration. I say "arguments/script parameters" because I recall there being a "script parameters" field in the configuration and now there is "arguments". I assume arguments is just "script parameters" renamed within the last few versions.
Specifically I am trying to use "--stacktrace" and "--info". I have added both to the gradle run configuration template and they are present in the configuration when idea runs the task. However, there is no stacktrace or info level output. I even get "Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. " when a task fails.
I am using a gradle 4.8 wrapper, but this happens whether I use the default wrapper, the wrapper task configuration, or a local distribution. The parameters work as expected from the command line.
I remember this being trivial, but it's been a while since I've had to set this up so maybe I'm just forgetting something. I appreciate any help in figuring it out.
Please sign in to leave a comment.
After further experimentation I found that when I run a task from the gradle tool window, while it creates a run configuration for that task, it does not USE that run configuration. If I use the run configuration for subsequent runs the arguments are passed to gradle. If I run from the tool window after a run configuration already exists for the task, it runs the task without the arguments in the configuration.
I feel like I remember running the tasks from the tool window using using the gradle run configuration template (or an existing run configuration if one exists). Am I wrong in this?
Please follow this issue for further progress: https://youtrack.jetbrains.com/issue/IDEA-202704