Skip to content

Commit ee91462

Browse files
committed
Document buildpacks are configured with target Java version
Closes gh-21796
1 parent 8404c4c commit ee91462

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ The following table summarizes the available properties and their default values
7777
| `false`
7878
|===
7979

80+
NOTE: The plugin detects the target Java compatibility of the project using the JavaPlugin's `targetCompatibility` property.
81+
By default, the plugin instructs the buildpacks to install the same Java version.
82+
You can override this behaviour by setting the `BP_JVM_VERSION` environment variable, see <<build-image-example-builder-configuration,builder configuration>>.
83+
8084

8185

8286
[[build-image-examples]]

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/packaging-oci-image.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,11 @@ The following table summarizes the available parameters and their default values
101101
| `false`
102102
|===
103103

104-
For more details, see <<build-image-example-custom-image-builder,custom image builder>> and <<build-image-example-custom-image-name,custom image name>>.
104+
NOTE: The plugin detects the target Java compatibility of the project using the compiler's plugin configuration or the `maven.compiler.target` property.
105+
By default, the plugin instructs the buildpacks to install the same Java version.
106+
You can override this behaviour by setting the `BP_JVM_VERSION` environment variable, see <<build-image-example-builder-configuration,builder configuration>>.
107+
108+
For more details, see also <<build-image-example-custom-image-builder,custom image builder>> and <<build-image-example-custom-image-name,custom image name>>.
105109

106110
include::goals/build-image.adoc[leveloffset=+1]
107111

0 commit comments

Comments
 (0)