Detetct gradle deamon / parallel / quiet states

Hi,

for my custom plugin I want to offer user interaction. However, the keyboard IO is flawed when the daemon is running, when gradle does not run in quiet mode, and probably also when running in parallel mode. I ould like to make my tasks fail in any otf those conditions. How can I check the respective states?

getProperty(‘org.gradle.daemon’) would not give me anything when strating gradle with --daemon i think.

‘gradle.startParameter’ should help for the latter two (see ‘Gradle’ in the Gradle Build Language Reference). Not sure about the daemon, but I’d try to print all system properties and check if I find something.