Skip to content

Commit b5b2fd2

Browse files
author
Phillip Webb
committed
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
1 parent 63aa545 commit b5b2fd2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

spring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,11 @@ Simply declare dependencies in the usual way, but leave the version number empty
352352
}
353353
----
354354

355+
NOTE: The version of the `spring-boot` gradle plugin that you declare determines the
356+
actual versions of the ``blessed'' dependencies (this ensures that builds are always
357+
repeatable). You should always set the version of the `spring-boot` gradle plugin to the
358+
actual Spring Boot version that you wish to use.
359+
355360

356361

357362
[[build-tool-plugins-gradle-packaging]]

spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ Maven, there is no ``super parent'' to import to share some configuration.
146146

147147
The <<build-tool-plugins.adoc#build-tool-plugins-gradle-plugin, `spring-boot-gradle-plugin`>>
148148
is also available and provides tasks to create executable jars and run projects from
149-
source. It also adds a `ResolutionStrategy` that enables you to omit the version number
150-
for ``blessed'' dependencies:
149+
source. It also adds a `ResolutionStrategy` that enables you to
150+
<<build-tool-plugins-gradle-dependencies-without-versions, omit the version number
151+
for ``blessed'' dependencies>>:
151152

152153
[source,groovy,indent=0,subs="attributes"]
153154
----

0 commit comments

Comments
 (0)