title: gradle configuration for powermock 1.7.4 and mockito 1.10.19
body: <p>I'm trying to run Java tests with PowerMock version 1.7.4 and Mockito version 1.10.19, using Gradle.</p>
  
  <p>PowerMock 1.7.4 has transitive dependencies on both </p>
  
  <p>org.mockito » mockito-core  1.10.19 
  and on
  org.mockito » mockito-core  2.8.9</p>
  
  <p>(See <a href="https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito-common/1.7.4" rel="nofollow noreferrer">https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito-common/1.7.4</a>)</p>
  
  <p>In order to NOT bring in Mockito 2.8.9, but instead have tests compile and run against Mockito 1.10.19, I have to do the following (because of various transitive dependencies within the powermock jars):</p>
  
  <pre><code>testCompile ("org.mockito:mockito-core:${versions.mockito}") {
      exclude group: 'org.hamcrest', module: 'hamcrest-core'
  }
  
  testCompile ("org.powermock:powermock-api-mockito-common:${versions.powermock}") {
      exclude group: 'org.mockito', module: 'mockito-core'
  }
  
  testCompile ("org.powermock:powermock-api-mockito:${versions.powermock}") {
      exclude group: 'org.mockito', module: 'mockito-core'
  }
  
  testCompile ("org.powermock:powermock-core:${versions.powermock}") {
      exclude group: 'org.mockito', module: 'mockito-core'
  }
  
  testCompile ("org.powermock:powermock-module-junit4:${versions.powermock}") {
      exclude group: 'org.powermock', module: 'powermock-module-junit4-common'
  }
  
  testCompile ("org.powermock:powermock-module-junit4-common:${versions.powermock}") {
      exclude group: 'org.powermock', module: 'powermock-core'
  }
  
  testCompile ("org.powermock:powermock-api-support:${versions.powermock}") {
      exclude group: 'org.powermock', module: 'powermock-core'
  }
  
  testCompile ("org.powermock:powermock-api-easymock:${versions.powermock}") {
      exclude group: 'org.powermock', module: 'powermock-api-support'
  }
  
  testCompile ("org.powermock:powermock-module-javaagent:${versions.powermock}") {
      exclude group: 'org.powermock', module: 'powermock-core'
  }
  
  testCompile ("org.powermock:powermock-module-junit4-rule-agent:${versions.powermock}") {
      exclude group: 'org.powermock', module: 'powermock-core'
  }
  
  testRuntime("org.mockito:mockito-core:${versions.mockito}") {
      exclude group: 'org.hamcrest', module: 'hamcrest-core'
  }
  </code></pre>
  
  <p>Where versions is:</p>
  
  <pre><code>versions = [
          'mockito': '1.10.19',
          'powermock': '1.7.4'
  ]
  </code></pre>
  
  <p>Surely there is a better, more concise way of doing this in Gradle, right?</p>