Skip to content

Commit 77218a6

Browse files
committed
Merge branch '3.1.x'
2 parents 99986a2 + afa4d27 commit 77218a6

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
@@ -618,6 +618,7 @@ For example, adding the following bean will automatically apply a `SameSite` of
618618
include::code:MySameSiteConfiguration[]
619619

620620

621+
621622
[[web.servlet.embedded-container.customizing.encoding]]
622623
===== Character Encoding
623624
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
@@ -432,9 +432,10 @@ The publish option can be specified on the command line as well, as shown in thi
432432
$ gradle bootBuildImage --imageName=docker.example.com/library/my-app:v1 --publishImage
433433
----
434434

435+
436+
435437
[[build-image.examples.caches]]
436438
=== Builder Cache and Workspace Configuration
437-
438439
The CNB builder caches layers that are used when building and launching an image.
439440
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.
440441
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.
@@ -470,12 +471,15 @@ include::../gradle/packaging/boot-build-image-bind-caches.gradle[tags=caches]
470471
include::../gradle/packaging/boot-build-image-bind-caches.gradle.kts[tags=caches]
471472
----
472473

474+
475+
473476
[[build-image.examples.docker]]
474477
=== Docker Configuration
475478

479+
480+
476481
[[build-image.examples.docker.minikube]]
477482
==== Docker Configuration for minikube
478-
479483
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.
480484

481485
On Linux and macOS, environment variables can be set using the command `eval $(minikube docker-env)` after minikube has been started.
@@ -494,9 +498,10 @@ include::../gradle/packaging/boot-build-image-docker-host.gradle[tags=docker-hos
494498
include::../gradle/packaging/boot-build-image-docker-host.gradle.kts[tags=docker-host]
495499
----
496500

501+
502+
497503
[[build-image.examples.docker.podman]]
498504
==== Docker Configuration for podman
499-
500505
The plugin can communicate with a https://podman.io/[podman container engine].
501506

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

516521
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.
517522

523+
524+
518525
[[build-image.examples.docker.colima]]
519526
==== Docker Configuration for Colima
520-
521527
The plugin can communicate with the Docker daemon provided by https://github.com/abiosoft/colima[Colima].
522528
The `DOCKER_HOST` environment variable can be set by using the command `export DOCKER_HOST=$(docker context inspect colima -f '{{.Endpoints.docker.Host}}').`
523529

@@ -535,9 +541,10 @@ include::../gradle/packaging/boot-build-image-docker-host-colima.gradle[tags=doc
535541
include::../gradle/packaging/boot-build-image-docker-host-colima.gradle.kts[tags=docker-host]
536542
----
537543

544+
545+
538546
[[build-image.examples.docker.auth]]
539547
==== Docker Configuration for Authentication
540-
541548
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:
542549

543550
[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
@@ -169,6 +169,9 @@ private Configuration createAotProcessingClasspath(Project project, String taskN
169169
.getByName(inputSourceSet.getRuntimeClasspathConfigurationName());
170170
return project.getConfigurations().create(taskName + "Classpath", (classpath) -> {
171171
classpath.setCanBeConsumed(false);
172+
if (!classpath.isCanBeResolved()) {
173+
throw new IllegalStateException("Unexpected");
174+
}
172175
classpath.setCanBeResolved(true);
173176
classpath.setDescription("Classpath of the " + taskName + " task.");
174177
removeDevelopmentOnly(base.getExtendsFrom(), developmentOnlyConfigurationNames)

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
@@ -413,9 +413,10 @@ and reference the properties in the XML configuration:
413413
include::../maven/packaging-oci-image/docker-pom-authentication-command-line.xml[tags=docker]
414414
----
415415

416+
417+
416418
[[build-image.examples.caches]]
417419
=== Builder Cache and Workspace Configuration
418-
419420
The CNB builder caches layers that are used when building and launching an image.
420421
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.
421422
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.
@@ -437,12 +438,15 @@ The caches and the build workspace can be configured to use bind mounts instead
437438
include::../maven/packaging-oci-image/bind-caches-pom.xml[tags=caches]
438439
----
439440

441+
442+
440443
[[build-image.examples.docker]]
441444
=== Docker Configuration
442445

446+
447+
443448
[[build-image.examples.docker.minikube]]
444449
==== Docker Configuration for minikube
445-
446450
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.
447451

448452
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 @@ The plugin can also be configured to use the minikube daemon by providing connec
454458
include::../maven/packaging-oci-image/docker-minikube-pom.xml[tags=docker-minikube]
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:
@@ -468,9 +473,10 @@ include::../maven/packaging-oci-image/docker-podman-pom.xml[tags=docker-podman]
468473

469474
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.
470475

476+
477+
471478
[[build-image.examples.docker.colima]]
472479
==== Docker Configuration for Colima
473-
474480
The plugin can communicate with the Docker daemon provided by https://github.com/abiosoft/colima[Colima].
475481
The `DOCKER_HOST` environment variable can be set by using the command `export DOCKER_HOST=$(docker context inspect colima -f '{{.Endpoints.docker.Host}}').`
476482

@@ -481,9 +487,10 @@ The plugin can also be configured to use Colima daemon by providing connection d
481487
include::../maven/packaging-oci-image/docker-colima-pom.xml[tags=docker-colima]
482488
----
483489

490+
491+
484492
[[build-image.examples.docker.auth]]
485493
==== Docker Configuration for Authentication
486-
487494
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:
488495

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

0 commit comments

Comments
 (0)