title: Can not resolve junit-jupiter-params:5.6.2 and junit-jupiter-engine:5.6.2 with Gradle 6.1.1
body: <p>I have an Android project with 2 Android modules and one pure Java module.<br>
  After updating the android build tools to com.android.tools.build:gradle:4.0.0 and the gradle wrapper to gradle-6.1.1-all the pure Java module can not resolve junit anymore.<br>
  I get the following error while syncing with the gradle files: </p>
  
  <pre><code>Failed to resolve: org.junit.jupiter:junit-jupiter-params:5.6.2 
  Failed to resolve: org.junit.jupiter:junit-jupiter-engine:5.6.2
  </code></pre>
  
  <p>If I try to run the tests directly I get the following output: </p>
  
  <pre><code>Could not resolve all files for configuration ':domain:testCompileClasspath'.
     &gt; Could not resolve org.junit.jupiter:junit-jupiter-params:5.6.2.
       Required by:
           project :domain
        &gt; Cannot choose between the following variants of org.junit.jupiter:junit-jupiter-params:5.6.2:
            - javadocElements
            - sourcesElements
          All of them match the consumer attributes:
            - Variant 'javadocElements' capability org.junit.jupiter:junit-jupiter-params:5.6.2:
                - Unmatched attributes:
                    - Found org.gradle.category 'documentation' but wasn't required.
                    - Found org.gradle.docstype 'javadoc' but wasn't required.
                    - Required org.gradle.jvm.version '7' but no value provided.
                    - Required org.gradle.libraryelements 'classes' but no value provided.
                    - Found org.gradle.status 'release' but wasn't required.
                    - Required org.jetbrains.kotlin.platform.type 'jvm' but no value provided.
                - Compatible attributes:
                    - Required org.gradle.dependency.bundling 'external' and found compatible value 'external'.
                    - Required org.gradle.usage 'java-api' and found compatible value 'java-runtime'.
            - Variant 'sourcesElements' capability org.junit.jupiter:junit-jupiter-params:5.6.2:
                - Unmatched attributes:
                    - Found org.gradle.category 'documentation' but wasn't required.
                    - Found org.gradle.docstype 'sources' but wasn't required.
                    - Required org.gradle.jvm.version '7' but no value provided.
                    - Required org.gradle.libraryelements 'classes' but no value provided.
                    - Found org.gradle.status 'release' but wasn't required.
                    - Required org.jetbrains.kotlin.platform.type 'jvm' but no value provided.
                - Compatible attributes:
                    - Required org.gradle.dependency.bundling 'external' and found compatible value 'external'.
                    - Required org.gradle.usage 'java-api' and found compatible value 'java-runtime'.
  </code></pre>
  
  <p>How can I tell Gradle where it should look for the correct junit dependencies?</p>