From ee914624e619237ee1850b6b8b71986b051e2317 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 31 Aug 2020 16:15:30 +0200 Subject: [PATCH] Document buildpacks are configured with target Java version Closes gh-21796 --- .../src/docs/asciidoc/packaging-oci-image.adoc | 4 ++++ .../src/docs/asciidoc/packaging-oci-image.adoc | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc index 85c137ae59..33d958e185 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc @@ -77,6 +77,10 @@ The following table summarizes the available properties and their default values | `false` |=== +NOTE: The plugin detects the target Java compatibility of the project using the JavaPlugin's `targetCompatibility` property. +By default, the plugin instructs the buildpacks to install the same Java version. +You can override this behaviour by setting the `BP_JVM_VERSION` environment variable, see <>. + [[build-image-examples]] diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/packaging-oci-image.adoc b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/packaging-oci-image.adoc index c899c58d6d..c415e5b7ae 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/packaging-oci-image.adoc +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/packaging-oci-image.adoc @@ -101,7 +101,11 @@ The following table summarizes the available parameters and their default values | `false` |=== -For more details, see <> and <>. +NOTE: The plugin detects the target Java compatibility of the project using the compiler's plugin configuration or the `maven.compiler.target` property. +By default, the plugin instructs the buildpacks to install the same Java version. +You can override this behaviour by setting the `BP_JVM_VERSION` environment variable, see <>. + +For more details, see also <> and <>. include::goals/build-image.adoc[leveloffset=+1]