Skip to content

Commit 86fa229

Browse files
committed
Merge pull request #41173 from sdeleuze
* pr/41173: Update Kotlin DSL examples of bootBuildImage to be additive Closes gh-41173
2 parents 365fdfe + a6f1bb9 commit 86fa229

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/gradle/packaging/boot-build-image-env-proxy.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.named<BootBuildImage>("bootBuildImage") {
10-
environment.set(mapOf("HTTP_PROXY" to "http://proxy.example.com",
10+
environment.putAll(mapOf("HTTP_PROXY" to "http://proxy.example.com",
1111
"HTTPS_PROXY" to "https://proxy.example.com"))
1212
}
1313
// end::env[]

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/gradle/packaging/boot-build-image-env-runtime.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-runtime[]
99
tasks.named<BootBuildImage>("bootBuildImage") {
10-
environment.set(mapOf(
10+
environment.putAll(mapOf(
1111
"BPE_DELIM_JAVA_TOOL_OPTIONS" to " ",
1212
"BPE_APPEND_JAVA_TOOL_OPTIONS" to "-XX:+HeapDumpOnOutOfMemoryError"
1313
))

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.named<BootBuildImage>("bootBuildImage") {
10-
environment.set(environment.get() + mapOf("BP_JVM_VERSION" to "17"))
10+
environment.put("BP_JVM_VERSION", "17")
1111
}
1212
// end::env[]
1313

0 commit comments

Comments
 (0)