Skip to content

Commit

Permalink
Update instead of replace environment in bootBuildImage documentation
Browse files Browse the repository at this point in the history
Closes gh-32886
  • Loading branch information
candrews committed Nov 30, 2022
1 parent 351084e commit e94afe8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
Expand Up @@ -5,10 +5,8 @@ plugins {

// tag::env[]
tasks.named("bootBuildImage") {
environment = [
"HTTP_PROXY" : "http://proxy.example.com",
"HTTPS_PROXY": "https://proxy.example.com"
]
environment["HTTP_PROXY"] = "http://proxy.example.com"
environment["HTTPS_PROXY"] = "https://proxy.example.com"
}
// end::env[]

Expand Down
Expand Up @@ -9,10 +9,8 @@ tasks.named("bootJar") {

// tag::env-runtime[]
tasks.named("bootBuildImage") {
environment = [
"BPE_DELIM_JAVA_TOOL_OPTIONS" : " ",
"BPE_APPEND_JAVA_TOOL_OPTIONS" : "-XX:+HeapDumpOnOutOfMemoryError"
]
environment["BPE_DELIM_JAVA_TOOL_OPTIONS"] = " "
environment["BPE_APPEND_JAVA_TOOL_OPTIONS"] = "-XX:+HeapDumpOnOutOfMemoryError"
}
// end::env-runtime[]

Expand Down
Expand Up @@ -5,7 +5,7 @@ plugins {

// tag::env[]
tasks.named("bootBuildImage") {
environment = ["BP_JVM_VERSION" : "17"]
environment["BP_JVM_VERSION"] = "17"
}
// end::env[]

Expand Down
Expand Up @@ -7,7 +7,7 @@ plugins {

// tag::env[]
tasks.named<BootBuildImage>("bootBuildImage") {
environment.set(mapOf("BP_JVM_VERSION" to "17"))
environment.get().putAll(mapOf("BP_JVM_VERSION" to "17"))
}
// end::env[]

Expand Down

0 comments on commit e94afe8

Please sign in to comment.