Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
db8a9ec5
Commit
db8a9ec5
authored
Jun 09, 2014
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish documentation of @GrabMetadata
parent
5d25588d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spring-boot-cli.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc
+6
-6
No files found.
spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc
View file @
db8a9ec5
...
@@ -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 the
ir specified. In the example above, this mean
s
properties files are applied in the order that the
y're specified. In the example above, thi
s
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 `@Grab
Versions
` at most once in your application.
can only use `@Grab
Metadata
` at most once in your application.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment