Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I enable the "no-daemon" functionality in IntelliJ IDEA? [duplicate]

I have a problem with the Gradle daemon not showing println output from my plugin on subsequent runs.

I can workaround this problem by adding --no-daemon when I run from the command line.

When I run the Gradle task from IDEA though, when I add --no-daemon to the "script parameters" (not the "VM options"), the execution fails with:

10:59:32: Executing external task 'lambdaGet --no-daemon'...
Unknown command-line option '--no-daemon'.

How can I use the --no-daemon option with Gradle task configuration in IDEA?

EDIT:

Note that this question is specifically about how to do this in IDEA. I don't want to disable the daemon globally, just from one specific IDEA run configuration.

like image 446
Shorn Avatar asked Jan 13 '17 01:01

Shorn


2 Answers

You can add org.gradle.daemon=false to your global gradle.properties file.

On Windows, you can create it in

C:\Users\Username\.gradle\gradle.properties

like image 146
mallaudin Avatar answered Sep 21 '22 03:09

mallaudin


did you try setting

org.gradle.daemon=false

in the gradle.properties in your .gradle directory

on my machine that folder is just under my home directory so the file is at /Users/fred/.gradle/gradle.properties

like image 36
Frederic Close Avatar answered Sep 19 '22 03:09

Frederic Close