Skip to content

Commit 092bbd1

Browse files
Merge branch '2.3.x'
Closes gh-22923
2 parents 8e17682 + 005ed8b commit 092bbd1

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ The builder and run image can be specified on the command line as well, as shown
121121
==== Builder Configuration
122122
If the builder exposes configuration options, those can be set using the `environment` property.
123123

124-
The following example assumes that the default builder defines a `BP_JVM_VERSION` property (typically used to customize the JDK version the image should use):
124+
The following example assumes that the default builder recognizes a `BP_JVM_VERSION` property.
125+
This property is typically used to customize the JDK version the image should use by specifying the major version and a wildcard for the rest of the version:
125126

126127
[source,groovy,indent=0,subs="verbatim,attributes",role="primary"]
127128
.Groovy

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/gradle/packaging/boot-build-image-env.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ bootJar {
99

1010
// tag::env[]
1111
bootBuildImage {
12-
environment = ["BP_JVM_VERSION" : "13.0.1"]
12+
environment = ["BP_JVM_VERSION" : "8.*"]
1313
}
1414
// end::env[]
1515

1616
task bootBuildImageEnvironment {
1717
doFirst {
18-
bootBuildImage.environment.each { name, value -> println "$name=$value" }
18+
bootBuildImage.environment.each { name, value -> println "$name=$value" }
1919
}
2020
}

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/gradle/packaging/boot-build-image-env.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77

88
// tag::env[]
99
tasks.getByName<BootBuildImage>("bootBuildImage") {
10-
environment = mapOf("BP_JVM_VERSION" to "13.0.1")
10+
environment = mapOf("BP_JVM_VERSION" to "8.*")
1111
}
1212
// end::env[]
1313

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ The builder and run image can be specified on the command line as well, as shown
158158
==== Builder Configuration
159159
If the builder exposes configuration options using environment variables, those can be set using the `env` attributes.
160160

161-
The following example assumes that the default builder defines a `BP_JVM_VERSION` property (typically used to customize the JDK version the image should use):
161+
The following example assumes that the default builder recognizes a `BP_JVM_VERSION` property.
162+
This property is typically used to customize the JDK version the image should use by specifying the major version and a wildcard for the rest of the version:
162163

163164
[source,xml,indent=0,subs="verbatim,attributes"]
164165
----
@@ -172,7 +173,7 @@ The following example assumes that the default builder defines a `BP_JVM_VERSION
172173
<configuration>
173174
<image>
174175
<env>
175-
<BP_JVM_VERSION>13.0.1</BP_JVM_VERSION>
176+
<BP_JVM_VERSION>8.*</BP_JVM_VERSION>
176177
</env>
177178
</image>
178179
</configuration>

0 commit comments

Comments
 (0)