title: How to pass gradle parameter on IntelliJ sync
body: <h2>EDIT:</h2>
  <p>Turns out it was not a bug but misconfiguration on my part.</p>
  <h2>Original question</h2>
  <p>Due to <a href="https://youtrack.jetbrains.com/issue/IDEA-181700" rel="nofollow noreferrer">this bug</a> in IntelilJ I have to add</p>
  <pre><code>configurations {
      all {
          exclude(group = &quot;ch.qos.logback&quot;, module = &quot;logback-classic&quot;)
      }
  }
  </code></pre>
  <p>during IntelliJ gradle sync and then not forget to remove it.</p>
  <p>Is there a way to pass a param to gradle on IntelliJ sync? I'd be able to have something like this:</p>
  <pre><code>if (project.hasProperty(&quot;intellijHack&quot;))
      configurations {
          all {
              exclude(group = &quot;ch.qos.logback&quot;, module = &quot;logback-classic&quot;)
          }
      }
  </code></pre>