title: How to exclude library from all dependencies in Kotlin DSL build.gradle?
body: <p>I started migration from <code>build.gradle</code> (Groovy) to <code>build.gradle.kts</code> (Kotlin DSL). The thing is that <code>com.google.common.util.concurrent.ListenableFuture</code> (from <code>com.google.guava</code>) exists in several dependecies. Because of that build fails with <code>java.lang.RuntimeException: Duplicate class ...</code> error.</p>
  <p>Previously (when I had <code>build.gradle</code> in Groovy) this problem was solved with this snippet:</p>
  <pre><code>configurations {
      all*.exclude group: 'com.google.guava', module: 'listenablefuture'
  }
  </code></pre>
  <p>But I can't find anything similar using Kotlin DSL.
  Could you please provide Kotlin alternative for the snippet above or suggest any other solution on how to deal with this?</p>