diff --git a/docs/pom.xml b/docs/pom.xml
index 8ebe1c228..066a27092 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -42,6 +42,12 @@
org.asciidoctor
asciidoctor-maven-plugin
+
+
+ ${project.version}
+ ${spring-boot.version}
+
+
diff --git a/docs/src/main/asciidoc/functional.adoc b/docs/src/main/asciidoc/functional.adoc
index 0bbe7e1c1..38100f4ae 100644
--- a/docs/src/main/asciidoc/functional.adoc
+++ b/docs/src/main/asciidoc/functional.adoc
@@ -265,19 +265,19 @@ like the `@Autowired` `TestRestTemplate`, are standard Spring Boot features.
And to help with correct dependencies here is the excerpt from POM
-[source, xml]
+[source, xml, subs=attributes+]
----
org.springframework.boot
spring-boot-starter-parent
- 2.2.2.RELEASE
+ {spring-boot-version}
. . . .
org.springframework.cloud
spring-cloud-function-web
- 3.0.1.BUILD-SNAPSHOT
+ {project-version}
org.springframework.boot
@@ -292,12 +292,6 @@ And to help with correct dependencies here is the excerpt from POM
org.springframework.boot
spring-boot-starter-test
test
-
-
- org.junit.vintage
- junit-vintage-engine
-
-
----
@@ -305,7 +299,6 @@ Or you could write a test for a non-HTTP app using just the `FunctionCatalog`. F
[source, java]
----
-@RunWith(SpringRunner.class)
@FunctionalSpringBootTest
public class FunctionalTests {
@@ -313,7 +306,7 @@ public class FunctionalTests {
private FunctionCatalog catalog;
@Test
- public void words() throws Exception {
+ public void words() {
Function function = catalog.lookup(Function.class,
"uppercase");
assertThat(function.apply("hello")).isEqualTo("HELLO");