Skip to content

Commit afa4d27

Browse files
committed
Merge branch '3.0.x' into 3.1.x
2 parents 683d791 + 8d53caa commit afa4d27

File tree

5 files changed

+29
-11
lines changed

5 files changed

+29
-11
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/servlet.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ For example, adding the following bean will automatically apply a `SameSite` of
604604
include::code:MySameSiteConfiguration[]
605605

606606

607+
607608
[[web.servlet.embedded-container.customizing.encoding]]
608609
===== Character Encoding
609610
The character encoding behavior of the embedded servlet container for request and response handling can be configured using the `server.servlet.encoding.*` configuration properties.

spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/reactive/AutoConfigureWebTestClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2032 the original author or authors.
2+
* Copyright 2012-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,10 @@ The publish option can be specified on the command line as well, as shown in thi
409409
$ gradle bootBuildImage --imageName=docker.example.com/library/my-app:v1 --publishImage
410410
----
411411

412+
413+
412414
[[build-image.examples.caches]]
413415
=== Builder Cache Configuration
414-
415416
The CNB builder caches layers that are used when building and launching an image.
416417
By default, these caches are stored as named volumes in the Docker daemon with names that are derived from the full name of the target image.
417418
If the image name changes frequently, for example when the project version is used as a tag in the image name, then the caches can be invalidated frequently.
@@ -430,12 +431,15 @@ include::../gradle/packaging/boot-build-image-caches.gradle[tags=caches]
430431
include::../gradle/packaging/boot-build-image-caches.gradle.kts[tags=caches]
431432
----
432433

434+
435+
433436
[[build-image.examples.docker]]
434437
=== Docker Configuration
435438

439+
440+
436441
[[build-image.examples.docker.minikube]]
437442
==== Docker Configuration for minikube
438-
439443
The plugin can communicate with the https://minikube.sigs.k8s.io/docs/tasks/docker_daemon/[Docker daemon provided by minikube] instead of the default local connection.
440444

441445
On Linux and macOS, environment variables can be set using the command `eval $(minikube docker-env)` after minikube has been started.
@@ -454,9 +458,10 @@ include::../gradle/packaging/boot-build-image-docker-host.gradle[tags=docker-hos
454458
include::../gradle/packaging/boot-build-image-docker-host.gradle.kts[tags=docker-host]
455459
----
456460

461+
462+
457463
[[build-image.examples.docker.podman]]
458464
==== Docker Configuration for podman
459-
460465
The plugin can communicate with a https://podman.io/[podman container engine].
461466

462467
The plugin can be configured to use podman local connection by providing connection details similar to those shown in the following example:
@@ -475,9 +480,10 @@ include::../gradle/packaging/boot-build-image-docker-host-podman.gradle.kts[tags
475480

476481
TIP: With the `podman` CLI installed, the command `podman info --format='{{.Host.RemoteSocket.Path}}'` can be used to get the value for the `docker.host` configuration property shown in this example.
477482

483+
484+
478485
[[build-image.examples.docker.colima]]
479486
==== Docker Configuration for Colima
480-
481487
The plugin can communicate with the Docker daemon provided by https://github.com/abiosoft/colima[Colima].
482488
The `DOCKER_HOST` environment variable can be set by using the command `export DOCKER_HOST=$(docker context inspect colima -f '{{.Endpoints.docker.Host}}').`
483489

@@ -495,9 +501,10 @@ include::../gradle/packaging/boot-build-image-docker-host-colima.gradle[tags=doc
495501
include::../gradle/packaging/boot-build-image-docker-host-colima.gradle.kts[tags=docker-host]
496502
----
497503

504+
505+
498506
[[build-image.examples.docker.auth]]
499507
==== Docker Configuration for Authentication
500-
501508
If the builder or run image are stored in a private Docker registry that supports user authentication, authentication details can be provided using `docker.builderRegistry` properties as shown in the following example:
502509

503510
[source,groovy,indent=0,subs="verbatim,attributes",role="primary"]

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/SpringBootAotPlugin.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ private Configuration createAotProcessingClasspath(Project project, String taskN
166166
.getByName(inputSourceSet.getRuntimeClasspathConfigurationName());
167167
Configuration aotClasspath = project.getConfigurations().create(taskName + "Classpath", (classpath) -> {
168168
classpath.setCanBeConsumed(false);
169+
if (!classpath.isCanBeResolved()) {
170+
throw new IllegalStateException("Unexpected");
171+
}
169172
classpath.setCanBeResolved(true);
170173
classpath.setDescription("Classpath of the " + taskName + " task.");
171174
removeDevelopmentOnly(base.getExtendsFrom()).forEach(classpath::extendsFrom);

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,10 @@ and reference the properties in the XML configuration:
392392
include::../maven/packaging-oci-image/docker-pom-authentication-command-line.xml[tags=docker]
393393
----
394394

395+
396+
395397
[[build-image.examples.caches]]
396398
=== Builder Cache Configuration
397-
398399
The CNB builder caches layers that are used when building and launching an image.
399400
By default, these caches are stored as named volumes in the Docker daemon with names that are derived from the full name of the target image.
400401
If the image name changes frequently, for example when the project version is used as a tag in the image name, then the caches can be invalidated frequently.
@@ -406,12 +407,15 @@ The cache volumes can be configured to use alternative names to give more contro
406407
include::../maven/packaging-oci-image/caches-pom.xml[tags=caches]
407408
----
408409

410+
411+
409412
[[build-image.examples.docker]]
410413
=== Docker Configuration
411414

415+
416+
412417
[[build-image.examples.docker.minikube]]
413418
==== Docker Configuration for minikube
414-
415419
The plugin can communicate with the https://minikube.sigs.k8s.io/docs/tasks/docker_daemon/[Docker daemon provided by minikube] instead of the default local connection.
416420

417421
On Linux and macOS, environment variables can be set using the command `eval $(minikube docker-env)` after minikube has been started.
@@ -423,9 +427,10 @@ The plugin can also be configured to use the minikube daemon by providing connec
423427
include::../maven/packaging-oci-image/docker-minikube-pom.xml[tags=docker-minikube]
424428
----
425429

430+
431+
426432
[[build-image.examples.docker.podman]]
427433
==== Docker Configuration for podman
428-
429434
The plugin can communicate with a https://podman.io/[podman container engine].
430435

431436
The plugin can be configured to use podman local connection by providing connection details similar to those shown in the following example:
@@ -437,9 +442,10 @@ include::../maven/packaging-oci-image/docker-podman-pom.xml[tags=docker-podman]
437442

438443
TIP: With the `colima` CLI installed, the command `podman info --format='{{.Host.RemoteSocket.Path}}'` can be used to get the value for the `docker.host` configuration property shown in this example.
439444

445+
446+
440447
[[build-image.examples.docker.colima]]
441448
==== Docker Configuration for Colima
442-
443449
The plugin can communicate with the Docker daemon provided by https://github.com/abiosoft/colima[Colima].
444450
The `DOCKER_HOST` environment variable can be set by using the command `export DOCKER_HOST=$(docker context inspect colima -f '{{.Endpoints.docker.Host}}').`
445451

@@ -450,9 +456,10 @@ The plugin can also be configured to use Colima daemon by providing connection d
450456
include::../maven/packaging-oci-image/docker-colima-pom.xml[tags=docker-colima]
451457
----
452458

459+
460+
453461
[[build-image.examples.docker.auth]]
454462
==== Docker Configuration for Authentication
455-
456463
If the builder or run image are stored in a private Docker registry that supports user authentication, authentication details can be provided using `docker.builderRegistry` parameters as shown in the following example:
457464

458465
[source,xml,indent=0,subs="verbatim,attributes",tabsize=4]

0 commit comments

Comments
 (0)