idea+gradle build and debug Spring source code locally

1 Introduction

  • IntelliJ IDEA 2019.3.3
  • gradle6.9.1
  • Spring-framework(5.3.11-SNAPSHOT)

2. Download and configure gradle

  1. download gradle

  2. idea placement gradle

 3. Local construction of Spring source code

  1. Spring source code download

  2. 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

Guess you like

Origin blog.csdn.net/weixin_38023225/article/details/120330552
Recommended