Document how to override a dependency version when using Gradle

Closes gh-3651
pull/3649/merge
Rob Winch 9 years ago committed by Andy Wilkinson
parent eb5d92f3f0
commit 91b2c3aee5

@ -1934,7 +1934,8 @@ automatically compile your code whenever a file is saved.
[[howto-customize-dependency-versions-with-maven]] [[howto-customize-dependency-versions-with-maven]]
=== Customize dependency versions with Maven [[howto-customize-dependency-versions]]
=== Customize dependency versions
If you use a Maven build that inherits directly or indirectly from `spring-boot-dependencies` If you use a Maven build that inherits directly or indirectly from `spring-boot-dependencies`
(for instance `spring-boot-starter-parent`) but you want to override a specific (for instance `spring-boot-starter-parent`) but you want to override a specific
third-party dependency you can add appropriate `<properties>` elements. Browse third-party dependency you can add appropriate `<properties>` elements. Browse
@ -1957,7 +1958,16 @@ the artifact yourself instead of overriding the property .
WARNING: Each Spring Boot release is designed and tested against a specific set of WARNING: Each Spring Boot release is designed and tested against a specific set of
third-party dependencies. Overriding versions may cause compatibility issues. third-party dependencies. Overriding versions may cause compatibility issues.
To override dependency versions in Gradle, you can specify a version as shown below:
[source,groovy,indent=0]
----
ext['slf4j.version'] = '1.7.5'
----
For additional information, please refer to the
https://github.com/spring-gradle-plugins/dependency-management-plugin[Gradle Dependency
Management Plugin documentation].
[[howto-create-an-executable-jar-with-maven]] [[howto-create-an-executable-jar-with-maven]]
=== Create an executable JAR with Maven === Create an executable JAR with Maven

Loading…
Cancel
Save