How to skip the test of buildSrc

  1. I want read the source code of spring-boot.
  2. So, I import the project into My IDEA.
  3. But, Gradle throw error when building project.

Gradle say:

Failed tests

javadocJarIsBuilt()

org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in C:\Users\ADMINI~1\AppData\Local\Temp\junit3069385896912965475 with arguments [build]

Output:
> Task :compileJava NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :extractLegalResources
> Task :jar
> Task :javadoc NO-SOURCE
> Task :javadocJar
> Task :sourcesJar
> Task :assemble
> Task :checkCompileClasspathForProhibitedDependencies
> Task :checkFormatMain NO-SOURCE
> Task :checkFormatTest NO-SOURCE
> Task :checkFormat UP-TO-DATE
> Task :checkRuntimeClasspathForProhibitedDependencies
> Task :checkTestCompileClasspathForProhibitedDependencies
> Task :checkTestRuntimeClasspathForProhibitedDependencies FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':checkTestRuntimeClasspathForProhibitedDependencies'.
> Could not resolve all files for configuration ':testRuntimeClasspath'.
   > Could not resolve org.junit.platform:junit-platform-launcher:1.6.0.
     Required by:
         project :
      > Could not resolve org.junit.platform:junit-platform-launcher:1.6.0.
         > Could not get resource 'https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.6.0/junit-platform-launcher-1.6.0.pom'.
            > Could not GET 'https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.6.0/junit-platform-launcher-1.6.0.pom'.
               > 不知道这样的主机。 (repo.maven.apache.org)
   > Could not resolve org.junit.platform:junit-platform-launcher:1.6.0.
     Required by:
         project : > org.junit:junit-bom:5.6.0
      > Could not resolve org.junit.platform:junit-platform-launcher:1.6.0.
         > Could not get resource 'https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.6.0/junit-platform-launcher-1.6.0.pom'.
            > Could not GET 'https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.6.0/junit-platform-launcher-1.6.0.pom'.
               > 不知道这样的主机。 (repo.maven.apache.org)

Something like network error.

But, it`s impossible. I test it with powershell:

$ Invoke-WebRequest https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.6.0/junit-platform-launcher-1.6.0.pom

StatusCode        : 200
StatusDescription : OK
Content           : <?xml version="1.0" encoding="UTF-8"?>
                    <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xm
                    lns="http://maven.apache.org/POM/4.0.0"
                        xmlns:x…
RawContent        : HTTP/1.1 200 OK
                    Connection: keep-alive
                    ETag: "fdb34da162967c2b7f4ccec4a67c476d"
                    X-Checksum-MD5: fdb34da162967c2b7f4ccec4a67c476d
                    X-Checksum-SHA1: 9230200a4edbeffa7fea4e01a878a083fbf16ff0
                    Via: 1.1…
Headers           : {[Connection, System.String[]], [ETag, System.String[]], [X-Checksum-MD5, System.String[]], [X-Checksum-SHA1,
                    System.String[]]…}
Images            : {}
InputFields       : {}
Links             : {}
RawContentLength  : 3032
RelationLink      : {}

So, How to skip the test of buildSrc