Skip to content

Build Zip with Dependencies

Sam Brannen edited this page Sep 5, 2019 · 2 revisions

NOTE: This document only applies to Spring Framework releases prior to version 5.2.0.

Sometimes due to corporate restrictions or when working with legacy builds, you can't use Maven or Gradle and have to download dependencies manually. If you're in this boat you can download a Spring Framework distribution zip from https://repo.spring.io including all source and binary jars. Or if you also want external, optional dependencies included, follow these steps:

  1. Clone the Spring Framework source tree as described in the Build from Source.

  2. Check out the tag of the version you want, e.g. git checkout v5.0.1.RELEASE.

  3. Run the depsZip gradle task with ./gradlew depsZip.

  4. When the task is complete, inspect the zip file at build/distributions/spring-framework-${VERSION}-dist-with-deps.zip that includes all optional and required runtime dependencies.

Keep in mind that most of Spring Framework's dependencies are optional! Use only the dependencies your application actually needs.