1 Introduction
- IntelliJ IDEA 2019.3.3
- gradle6.9.1
- Spring-framework(5.3.11-SNAPSHOT)
2. Download and configure gradle
-
download gradle
-
idea placement gradle
3. Local construction of Spring source code
-
Spring source code download
-
Configuration file modification
1) Modify the build.gradle configuration file to use the Alibaba Cloud warehouse to increase the download speed.
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'}
2) Settings.gradle configuration file modification
maven { url "https://maven.aliyun.com/repository/public" }
3) If there is memory overflow, you can modify the gradle.properties file
3. Prepare to build
import-into-idea.md : This is the official spring source code import idea steps and instructions
1) Precompile spring-oxm
./gradlew :spring-oxm:compileTestJava
2) Precompile spring-core
./gradlew :spring-core:compileTestJava