Skip to content

Commit c0c67f2

Browse files
Marcel Overdijksnicoll
authored andcommitted
Update doc
Add note about escaping Spring property placeholders when using Gradle automatic expansion. Closes gh-2695
1 parent c1eea4c commit c0c67f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spring-boot-docs/src/main/asciidoc/production-ready-features.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,11 @@ You can then refer to your Gradle project's properties via placeholders, e.g.
354354
info.build.version=${version}
355355
----
356356

357+
NOTE: Gradle's `expand` method uses Groovy's `SimpleTemplateEngine` which transforms
358+
`${..}` tokens. This `${..}` style conflicts with Spring's own property placeholder
359+
mechanism. To use Spring property placeholders together with automatic expansion
360+
the Spring property placeholders need to be escaped like `\${..}`.
361+
357362

358363

359364
[[production-ready-git-commit-information]]

0 commit comments

Comments
 (0)