title: Gradle is not resolving any dependencies
body: <p>I have a Gradle java project. When I tried to import/ open, I am getting <em>dependency can't be resolved</em> error.</p>
  
  <p>Initially I tried with IntelliJ, so doubt IntelliJ issue ann tried Netbeans, but no luck. After I tried just <code>gradle build</code> command on CLI, same issue. </p>
  
  <pre><code>* What went wrong:
  A problem occurred configuring root project 'cloud-smart-city'.
  &gt; Could not resolve all artifacts for configuration ':classpath'.
  &gt; Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.1.9.RELEASE.
   Required by:
       project :
    &gt; Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.1.9.RELEASE.
       &gt; Could not get resource 'https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-gradle-plugin/2.1.9.RELEASE/spring-boot-gradle-plugin-2.1.9.RELEASE.pom'.
          &gt; Could not GET 'https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-gradle-plugin/2.1.9.RELEASE/spring-boot-gradle-plugin-2.1.9.RELEASE.pom'.
             &gt; java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    &gt; Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.1.9.RELEASE.
       &gt; Could not get resource 'https://jcenter.bintray.com/org/springframework/boot/spring-boot-gradle-plugin/2.1.9.RELEASE/spring-boot-gradle-plugin-2.1.9.RELEASE.pom'.
          &gt; Could not GET 'https://jcenter.bintray.com/org/springframework/boot/spring-boot-gradle-plugin/2.1.9.RELEASE/spring-boot-gradle-plugin-2.1.9.RELEASE.pom'.
             &gt; java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
  </code></pre>
  
  <p>Below given is the <code>build.gradle</code></p>
  
  <pre><code>buildscript {
      ext {
          springBootVersion = '2.1.9.RELEASE'
          springCloudVersion = 'Greenwich.SR3'
          alibabaSCVersion = '2.2.0.RELEASE'
      }
      repositories {
          mavenLocal()
          maven { url "http://maven.aliyun.com/nexus/content/groups/public" }
          maven { url "http://repo.spring.io/snapshot" }
          maven { url "http://repo.spring.io/milestone" }
          jcenter()
      }
      dependencies {
          classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
      }
  }
  
  allprojects {
      repositories {
          maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
          jcenter()
          mavenCentral()
      }
      tasks.withType(JavaCompile) {
          options.encoding = "UTF-8"
      }
  }
  
  subprojects {
      apply plugin: 'java'
      apply plugin: 'idea'
      apply plugin: 'io.spring.dependency-management'
  
      sourceCompatibility = 1.8
      targetCompatibility = 1.8
  
      dependencies {
          annotationProcessor('org.projectlombok:lombok:1.18.8')
          implementation("org.projectlombok:lombok:1.18.8")
          implementation("com.google.guava:guava:20.0")
          implementation('com.alibaba:fastjson:1.2.60')
      }
  
      dependencyManagement {
          imports {
              mavenBom "com.alibaba.cloud:spring-cloud-alibaba-dependencies:${alibabaSCVersion}"
              mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
          }
      }
  }
  </code></pre>
  
  <p>I have tried with Gradle version <code>5.2.1, 6.0 and 6.3</code></p>
  
  <p>The project have multiple submodules. </p>
  
  <p>This is building every other machine. So I think it is something with my Gradle.</p>
  
  <p>I am using <strong>Windows 10</strong> as build system.</p>
  
  <p>Thanks in advance</p>