From c0c67f2593dbfd17aa304b43f4da3a3678fa58eb Mon Sep 17 00:00:00 2001 From: Marcel Overdijk Date: Sat, 21 Mar 2015 23:11:14 +0100 Subject: [PATCH] Update doc Add note about escaping Spring property placeholders when using Gradle automatic expansion. Closes gh-2695 --- .../src/main/asciidoc/production-ready-features.adoc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc b/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc index 06acda1d18b..d9e8476ec29 100644 --- a/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc @@ -354,6 +354,11 @@ You can then refer to your Gradle project's properties via placeholders, e.g. info.build.version=${version} ---- +NOTE: Gradle's `expand` method uses Groovy's `SimpleTemplateEngine` which transforms +`${..}` tokens. This `${..}` style conflicts with Spring's own property placeholder +mechanism. To use Spring property placeholders together with automatic expansion +the Spring property placeholders need to be escaped like `\${..}`. + [[production-ready-git-commit-information]]