Spring 5.0 source code import IDEA (1)

1. Download Spring

spring3.x will be hosted on github in the future, so download the source code directly to github to download.

github address: spring-framework
because I compiled the latest version spring-framework-5.0.4.RELEASE
download address:
https://codeload.github.com/spring-projects/spring-framework/zip/v5.0.4 .RELEAS

Download the image below:
write picture description here

2. Download Gradle to compile

Since spring is compiled with Gradle, Gradle must be downloaded

Download address https://gradle.org/releases/

The latest version I downloaded: https://gradle.org/next-steps/?version=4.6&format=bin

  1. Configure environment variables
      Add: GRADLE_HOME
    write picture description here
     Add environment variables: Path: %GRADLE_HOME%\bin
  2. Detect environment
    gradle -v
------------------------------------------------------------
Gradle 4.6
------------------------------------------------------------

Build time:   2018-02-28 13:36:36 UTC
Revision:     8fa6ce7945b640e6168488e4417f9bb96e4ab46c

Groovy:       2.4.12
Ant:          Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM:          1.8.0_102 (Oracle Corporation 25.102-b14)
OS:           Windows 10 10.0 amd64

3. Compile

  1. cmd cut to: spring-framework-5.0.4.RELEASE directory
    run gradlew.bat
G:\spring-framework\ideaspring\spring-framework-5.0.4.RELEASE>gradlew.bat

> Task :help

Welcome to Gradle 4.4.1.

To run a build, run gradlew <task> ...

To see a list of available tasks, run gradlew tasks

To see a list of command-line options, run gradlew --help

To see more detail about a task, run gradlew help --task <task>


BUILD SUCCESSFUL in 6s
1 actionable task: 1 executed
  1. import idea

write picture description here

Then wait for the compilation, the compilation time is a bit long, so be patient.
Finish:
write picture description here

4. Questions

  1. Error:(30, 0) No such property: values for class: org.gradle.api.internal.tasks.DefaultTaskDependency
    Possible solutions: values
    Open File(spring-beans\spring-beans.gradle )

Click: Open File then comment out
//compileGroovy.dependsOn = compileGroovy.taskDependencies.values ​​- 'compileJava'

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325582733&siteId=291194637