Can't pick WARNING log level and higher from the command line

The gradle docs on log levels list all the various log levels and the section right below it shows how to make gradle output messages with a certain log level and higher. But there’s no way to specify WARNING and higher.

  • -q will output ERROR and QUIET, but will drop WARNING.
  • default will output ERROR, QUIET, WARNING and the noisy LIFECYCLE level, which I don’t want.
  • other flags don’t help either.

There should be a way to specify WARNING and above, making gradle only output actionable output.