-
Notifications
You must be signed in to change notification settings - Fork 38.4k
Build from Source
This document describes how to build the Spring Framework sources locally.
The Spring Framework uses a Gradle build. The instructions below use Gradle Wrapper from the root of the source tree. The wrapper script serves as a cross-platform, self-contained bootstrap mechanism for the build system.
Before You Start
To build you will need Git and
JDK 8 update 20 or later.
Be sure that your JAVA_HOME
environment variable points to the jdk1.8.0
folder
extracted from the JDK download.
Get the Source Code
git clone [email protected]:spring-projects/spring-framework.git
cd spring-framework
Import Into Your IDE
To import into an IDE, ensure JDK 8 is configured. Then run ./import-into-eclipse.sh
or read
import-into-idea.md.
For IntelliJ please do read the instructions as a straight-up import will not work.
Run Gradle Tasks
To compile, test, build all jars, distribution zips, and docs use:
./gradlew build
To install all spring-* jars into your local Maven cache:
./gradlew install -x javadoc
Discover more commands:
./gradlew tasks