Spring Source Code download, spring
Spring has migrated the source code from SVN to Github, and has also changed to build a project based on Gradle. It replaces the ANT + Ivy system, therefore, to build the Spring source code, install Github and Gradle first.
First, let's assume that you have successfully installed Github and Gradle.
After Gradle is downloaded, You need to configure environment variables: similar to JDK configuration. Here, configure GRADLE_HOME and path.
The following describes how to download the source code and compile it into a project that can be identified by eclipse.
1. First open Github and enter the command cd e: // Spring to locate the location where the source code is downloaded to the local device,
2. Enter the command: git clone git: // github.com/springsource/spring-framework.git, and enter the download stage of the source code.
3. compile any project we need, such as spring-beans: cd e: // Spring/Spring-framework/spring-beans, and then execute gradle cleanIdea eclipse. You can convert the Spring-beans project to a project that eclipse can recognize.
4. after adding eclipse, we will find that this project may depend on other projects. In this case, we need to use step 3 to import other projects and add them to the dependencies, or directly find the corresponding jira package and put it in.