Encountered when learning Spring5 pit Source

Encountered when learning Spring5 pit Source

0) I downloaded the source code version is spring-framework-5.0.2.RELEASE

 

1) How is introduced into the IDEA

file >>> open >>> find build.gradle file spring project,

Provided gradle installation package path and introducing jdk version and whether the packet is automatically turned

 

2) a problem when the leader packet, connection timeout tips

This is due to the foreign network request timed out, we can set the download from Ali jar package, create a file in the local repository gradle init.gradle's, reads as follows:

allprojects {
    repositories {
        def REPOSITORY_URL = 'http://maven.aliyun.com/nexus/content/groups/public/'
        all { ArtifactRepository repo ->
            if(repo instanceof MavenArtifactRepository){
                def url = repo.url.toString()
                if (url.startsWith('https://repo1.maven.org/maven2') || url.startsWith('https://jcenter.bintray.com/')) {
                    remove repo
                }
            }
        }
        maven {
            url REPOSITORY_URL
        }
    }
}

All such projects will gradle Ali warehouse download jar package

 

3)Could not find org.jetbrains.dokka:integration:0.9.15.

Guide package can not find the package to continue, so we have to modify the package version number, the solution is as follows:

3.1 modify build.gradle file, the id "org.jetbrains.dokka" version "0.9.15" changed to id "org.jetbrains.dokka" version "0.9.17"

3.2 repositories add maven {url "https://plugins.gradle.org/m2/"}, problem solved, you can download the new version of the jar package

 

Guess you like

Origin www.cnblogs.com/xdzy/p/11315994.html