Passing --stacktrace and --debug options to gradle


I am using Intellij IDEA 14 public preview. My application is a grails application and uses gradle to build. When I import the project in IDEA, the project imports successfully. I get an error during grails synchronization and the message says "Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.".

How do I set these options? Is there a way to set global gradle command line options?


Comment actions Permalink

you can pass gradle command line options using gradle Run Configuration in a "Script parametetrs" section.

Also you can add the following code in you build.gradle:

logging.level = LogLevel.DEBUG
Comment actions Permalink

Grails synchronization does not have a run config. I want to see the debug message for that. The log level will work for debug. Is there a property that I can set for stack trace.
It would be nice to be able to configure default command line options for gradle as a global preference.



Please sign in to leave a comment.