From b5b2fd2377638a311a2d65c4579ecd3e4feb245a Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 23 Apr 2014 22:42:10 +0100 Subject: [PATCH] Add note explaining gradle ResolutionStrategy Update reference documentation to include a note explaining that "blessed" versions a chosen based on the gradle plugin version, and that builds are repeatable. Fixes gh-619 --- spring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc | 5 +++++ spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc b/spring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc index 3ad3fc59abe..7bc34672de9 100644 --- a/spring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc +++ b/spring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc @@ -352,6 +352,11 @@ Simply declare dependencies in the usual way, but leave the version number empty } ---- +NOTE: The version of the `spring-boot` gradle plugin that you declare determines the +actual versions of the ``blessed'' dependencies (this ensures that builds are always +repeatable). You should always set the version of the `spring-boot` gradle plugin to the +actual Spring Boot version that you wish to use. + [[build-tool-plugins-gradle-packaging]] diff --git a/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc b/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc index fdaa5abbdc2..7a951aa90bd 100644 --- a/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc +++ b/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc @@ -146,8 +146,9 @@ Maven, there is no ``super parent'' to import to share some configuration. The <> is also available and provides tasks to create executable jars and run projects from -source. It also adds a `ResolutionStrategy` that enables you to omit the version number -for ``blessed'' dependencies: +source. It also adds a `ResolutionStrategy` that enables you to +<>: [source,groovy,indent=0,subs="attributes"] ----