Commit db8a9ec5 authored by Andy Wilkinson's avatar Andy Wilkinson

Polish documentation of @GrabMetadata

parent 5d25588d
...@@ -169,13 +169,13 @@ metadata can be found in the <<appendix-dependency-versions, appendix>>. ...@@ -169,13 +169,13 @@ metadata can be found in the <<appendix-dependency-versions, appendix>>.
===== Custom ``grab'' metadata ===== Custom ``grab'' metadata
Spring Boot provides a new annotation, `@GrabMetadata` that can be used to provide custom Spring Boot provides a new annotation, `@GrabMetadata` that can be used to provide custom
dependency metadata that overrides Spring Boot's defaults. This metadata is specified by dependency metadata that overrides Spring Boot's defaults. This metadata is specified by
using the new annotation to provide the coordinates of one or more properties files. For example ` using the new annotation to provide the coordinates of one or more properties files. For example
@GrabMetadata(['com.example:versions-one:1.0.0', 'com.example.versions-two:1.0.0'])`. The `@GrabMetadata(['com.example:versions-one:1.0.0', 'com.example.versions-two:1.0.0'])`. The
properties files are applied in the order that their specified. In the example above, this means properties files are applied in the order that they're specified. In the example above, this
that properties in `versions-two` will override properties in `versions-one`. Each entry in means that properties in `versions-two` will override properties in `versions-one`. Each entry
each properties file must be in the form `group:module=version`. You can use `@GrabVersions` in each properties file must be in the form `group:module=version`. You can use `@GrabMetadata`
anywhere that you can use `@Grab`, however, to ensure consistent ordering of the metadata, you anywhere that you can use `@Grab`, however, to ensure consistent ordering of the metadata, you
can only use `@GrabVersions` at most once in your application. can only use `@GrabMetadata` at most once in your application.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment