title: How to generate a warning (not an exception)
body: <p>How do I generate a warning in gradle build scripts to alert the user to something (potentially) problematic - but not mission critical.</p>
  
  <p>I know you can throw exceptions like this</p>
  
  <pre><code>if (...) {
      throw new GradleException("something bad happened")
  }
  </code></pre>
  
  <p>But what if I don't want to stop the build, but just let the user know something?</p>