Browse Source

Merge branch '2.3.x'

Closes gh-22923
pull/22946/head
Scott Frederick 6 years ago
parent
commit
092bbd198e
  1. 3
      spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc
  2. 4
      spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/gradle/packaging/boot-build-image-env.gradle
  3. 2
      spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/gradle/packaging/boot-build-image-env.gradle.kts
  4. 5
      spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/packaging-oci-image.adoc

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

@ -121,7 +121,8 @@ The builder and run image can be specified on the command line as well, as shown @@ -121,7 +121,8 @@ The builder and run image can be specified on the command line as well, as shown
==== Builder Configuration
If the builder exposes configuration options, those can be set using the `environment` property.
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):
The following example assumes that the default builder recognizes a `BP_JVM_VERSION` property.
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:
[source,groovy,indent=0,subs="verbatim,attributes",role="primary"]
.Groovy

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

@ -9,12 +9,12 @@ bootJar { @@ -9,12 +9,12 @@ bootJar {
// tag::env[]
bootBuildImage {
environment = ["BP_JVM_VERSION" : "13.0.1"]
environment = ["BP_JVM_VERSION" : "8.*"]
}
// end::env[]
task bootBuildImageEnvironment {
doFirst {
bootBuildImage.environment.each { name, value -> println "$name=$value" }
bootBuildImage.environment.each { name, value -> println "$name=$value" }
}
}

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.getByName<BootBuildImage>("bootBuildImage") {
environment = mapOf("BP_JVM_VERSION" to "13.0.1")
environment = mapOf("BP_JVM_VERSION" to "8.*")
}
// end::env[]

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

@ -158,7 +158,8 @@ The builder and run image can be specified on the command line as well, as shown @@ -158,7 +158,8 @@ The builder and run image can be specified on the command line as well, as shown
==== Builder Configuration
If the builder exposes configuration options using environment variables, those can be set using the `env` attributes.
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):
The following example assumes that the default builder recognizes a `BP_JVM_VERSION` property.
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:
[source,xml,indent=0,subs="verbatim,attributes"]
----
@ -172,7 +173,7 @@ The following example assumes that the default builder defines a `BP_JVM_VERSION @@ -172,7 +173,7 @@ The following example assumes that the default builder defines a `BP_JVM_VERSION
<configuration>
<image>
<env>
<BP_JVM_VERSION>13.0.1</BP_JVM_VERSION>
<BP_JVM_VERSION>8.*</BP_JVM_VERSION>
</env>
</image>
</configuration>

Loading…
Cancel
Save