From 5ca7201fa57a668163470dc54c1cdf9134d8755e Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Fri, 27 Oct 2023 13:47:02 +0200 Subject: [PATCH] Fix "Integrating with Actuator" code snippet Closes gh-36114 --- .../src/docs/asciidoc/build-info.adoc | 6 +++--- .../src/docs/maven/build-info/pom.xml | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/build-info.adoc b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/build-info.adoc index 57eb95a810e..b4ee3928ee9 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/build-info.adoc +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/build-info.adoc @@ -9,9 +9,9 @@ It also allows you to add an arbitrary number of additional properties, as shown include::../maven/build-info/pom.xml[tags=build-info] ---- -This configuration will generate a `build-info.properties` at the expected location with four additional keys. +This configuration will generate a `build-info.properties` at the expected location with three additional keys. -NOTE: `maven.compiler.source` and `maven.compiler.target` are expected to be regular properties available in the project. -They will be interpolated as you would expect. +NOTE: `java.version` is expected to be a regular property available in the project. +It will be interpolated as you would expect. include::goals/build-info.adoc[leveloffset=+1] diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/maven/build-info/pom.xml b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/maven/build-info/pom.xml index 976cd10e77c..5191fc4ff88 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/maven/build-info/pom.xml +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/maven/build-info/pom.xml @@ -17,8 +17,7 @@ UTF-8 UTF-8 - ${maven.compiler.source} - ${maven.compiler.target} + ${java.version}