Browse Source

Merge pull request #41173 from sdeleuze

* pr/41173:
  Update Kotlin DSL examples of bootBuildImage to be additive

Closes gh-41173
pull/42868/head
Moritz Halbritter 2 years ago
parent
commit
86fa2296e2
  1. 2
      spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/gradle/packaging/boot-build-image-env-proxy.gradle.kts
  2. 2
      spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/gradle/packaging/boot-build-image-env-runtime.gradle.kts
  3. 2
      spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/gradle/packaging/boot-build-image-env.gradle.kts

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

@ -7,7 +7,7 @@ plugins { @@ -7,7 +7,7 @@ plugins {
// tag::env[]
tasks.named<BootBuildImage>("bootBuildImage") {
environment.set(mapOf("HTTP_PROXY" to "http://proxy.example.com",
environment.putAll(mapOf("HTTP_PROXY" to "http://proxy.example.com",
"HTTPS_PROXY" to "https://proxy.example.com"))
}
// end::env[]

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

@ -7,7 +7,7 @@ plugins { @@ -7,7 +7,7 @@ plugins {
// tag::env-runtime[]
tasks.named<BootBuildImage>("bootBuildImage") {
environment.set(mapOf(
environment.putAll(mapOf(
"BPE_DELIM_JAVA_TOOL_OPTIONS" to " ",
"BPE_APPEND_JAVA_TOOL_OPTIONS" to "-XX:+HeapDumpOnOutOfMemoryError"
))

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

@ -7,7 +7,7 @@ plugins { @@ -7,7 +7,7 @@ plugins {
// tag::env[]
tasks.named<BootBuildImage>("bootBuildImage") {
environment.set(environment.get() + mapOf("BP_JVM_VERSION" to "17"))
environment.put("BP_JVM_VERSION", "17")
}
// end::env[]

Loading…
Cancel
Save