Commit Graph

24703 Commits

Author SHA1 Message Date
Andy Wilkinson a10b000119 Fix constructor binding of EnumMaps
Fixes gh-41550
2024-07-19 16:28:16 +01:00
Andy Wilkinson 07b103cc2b Prohibit upgrades to Undertow 2.3.15
Closes gh-41533
2024-07-17 07:42:02 +01:00
Andy Wilkinson 4e205ede1d Upgrade to Spring Pulsar 1.0.8
Closes gh-41532
2024-07-17 07:38:49 +01:00
Andy Wilkinson 0eb830de15 Upgrade to Spring Integration 6.2.7
Closes gh-41296
2024-07-16 18:50:21 +01:00
Andy Wilkinson 7966d11c49 Upgrade to Spring GraphQL 1.2.8
Closes gh-41523
2024-07-16 12:37:29 +01:00
Andy Wilkinson 1cc7498c9a Add property for Integration's default endpoint timeout
Fixes gh-41477
2024-07-16 11:22:27 +01:00
Andy Wilkinson 17d6f90468 Document types to which format properties apply
Closes gh-41482
2024-07-16 08:47:30 +01:00
Andy Wilkinson 6941d0e84b Document that logging.file.path if logging.file.name is set
Closes gh-41351
2024-07-16 08:45:01 +01:00
Stéphane Nicoll 49538adbda Upgrade to Spring Kafka 3.1.7
Closes gh-41297
2024-07-16 08:09:34 +02:00
Andy Wilkinson d63e3c3b53 Rethrow failure on main thread
Previously, if a failure occurred when evaluating conditions on a
separate thread, an NPE would occur on the main thread as the
expected array of outcomes was null.

This commit avoids the NPE and the lack of error reporting by
rethrowing on the main thread any failure that occurs on the
separate thread that's spawned to parallelize the evaluation.

Closes gh-41492
2024-07-15 15:09:57 +01:00
Andy Wilkinson 68ad8ff0a6 Upgrade to SQLite JDBC 3.43.2.2
Closes gh-41495
2024-07-15 15:02:07 +01:00
Andy Wilkinson 46aeb71114 Upgrade to Spring HATEOAS 2.2.3
Closes gh-41493
2024-07-15 15:02:02 +01:00
Andy Wilkinson b49085bf8c Upgrade to Spring Data Bom 2023.1.8
Closes gh-41294
2024-07-15 15:02:01 +01:00
Stéphane Nicoll db9b62e628 Upgrade to Spring Retry 2.0.7
Closes gh-41484
2024-07-14 11:35:26 +02:00
Andy Wilkinson b76b7b7bd9 Upgrade to AspectJ 1.9.22.1
Closes gh-41470
2024-07-12 16:02:54 +01:00
Andy Wilkinson f702230c12 Test Gradle plugin against Gradle 8.9
Closes gh-41454
2024-07-12 07:31:24 +01:00
Andy Wilkinson 8bc45a20d7 Polish "Fix typos in BootstrapContext javadoc"
See gh-41443
2024-07-11 13:16:38 +01:00
John Blum 47fc9111cb Fix typos in BootstrapContext javadoc
See gh-41443
2024-07-11 13:16:10 +01:00
Andy Wilkinson 2f962f7aa3 Upgrade to Reactor Bom 2023.0.8
Closes gh-41436
2024-07-10 14:24:49 +01:00
Andy Wilkinson c05a40f180 Upgrade to Neo4j Java Driver 5.22.0
Closes gh-41370
2024-07-09 11:25:39 +01:00
Andy Wilkinson 430ae41ee3 Upgrade to Micrometer Tracing 1.2.8
Closes gh-41293
2024-07-09 11:21:34 +01:00
Andy Wilkinson 95f7c33f42 Upgrade to Micrometer 1.12.8
Closes gh-41292
2024-07-09 11:21:34 +01:00
Andy Wilkinson 9655e52cb1 Upgrade to Lombok 1.18.34
Closes gh-41368
2024-07-09 11:21:34 +01:00
Andy Wilkinson d57b41436b Upgrade to JsonAssert 1.5.3
Closes gh-41366
2024-07-09 11:21:33 +01:00
Andy Wilkinson d79ee604ff Upgrade to Jetty 12.0.11
Closes gh-41365
2024-07-09 11:21:32 +01:00
Andy Wilkinson 73416ee0e3 Upgrade to HttpCore5 5.2.5
Closes gh-41364
2024-07-09 11:21:32 +01:00
Andy Wilkinson 54fd4d2e9e Upgrade to Groovy 4.0.22
Closes gh-41363
2024-07-09 11:21:31 +01:00
Andy Wilkinson 1bc7e22f95 Upgrade to Dependency Management Plugin 1.1.6
Closes gh-41362
2024-07-09 11:21:31 +01:00
Andy Wilkinson f9023c1130 Upgrade to Byte Buddy 1.14.18
Closes gh-41361
2024-07-09 11:21:30 +01:00
Andy Wilkinson 7b809de0c4 Revert "Upgrade to Undertow 2.3.14.Final"
This reverts commit 71b789a2e3.

See gh-41330
2024-07-08 19:38:46 +01:00
Andy Wilkinson cb9135b743 Align GraphQL Java version with dependency from spring-graphql
Closes gh-41315
2024-07-08 10:32:04 +01:00
Andy Wilkinson 262a5c195c Upgrade to GraphQL Java 21.5
Closes gh-41340
2024-07-08 10:28:03 +01:00
Moritz Halbritter 71b789a2e3 Upgrade to Undertow 2.3.14.Final
Closes gh-41330
2024-07-05 14:09:50 +02:00
Andy Wilkinson c1e5d2e0c4 Start building against Spring Kafka 3.1.7 snapshots
See gh-41297
2024-07-03 10:45:28 +01:00
Andy Wilkinson 7d40df9c89 Start building against Spring Integration 6.2.7 snapshots
See gh-41296
2024-07-03 10:45:24 +01:00
Andy Wilkinson 9b1475cb40 Start building against Spring Data Bom 2023.1.8 snapshots
See gh-41294
2024-07-03 10:45:15 +01:00
Andy Wilkinson a1a3cecf52 Start building against Micrometer Tracing 1.2.8 snapshots
See gh-41293
2024-07-03 10:45:11 +01:00
Andy Wilkinson da7be08373 Start building against Micrometer 1.12.8 snapshots
See gh-41292
2024-07-03 10:45:06 +01:00
Andy Wilkinson d71fdd9712 Make buildSrc's custom Gradle tasks consistently abstract
Closes gh-41272
2024-06-28 15:40:56 +01:00
Sébastien Deleuze a6f1bb9590 Update Kotlin DSL examples of bootBuildImage to be additive
See gh-41173
2024-06-28 13:47:42 +02:00
Andy Wilkinson 365fdfee45 Reduce scope of mavenOptional feature to only the Maven Plugin
Previously, the mavenOptional was added to every published module but it
was only used by spring-boot-maven-plugin. This commit reduces its scope
so that it only affects the Maven plugin. It also reworks the
implementation to reuse the existing optional configuration rather than
declaring a new mavenOptional configuration. Lastly, publication of
Gradle Module Metadata (GMM) has been disabled for
spring-boot-maven-plugin. This is seen as preferable to publishing the
metadata – which isn't really needed as it does not contain any useful
additional information – and having to suppress warnings about
incomplete mapping of GMM to pom metadata.

Closes gh-41263
2024-06-28 11:39:46 +01:00
Andy Wilkinson 2ed72c6e4d Correct syntax for plexus-utils exclusion
See 07442f8366
See gh-41248
2024-06-28 11:39:46 +01:00
Moritz Halbritter 2605f86731 Polish BaggagePropagationIntegrationTests 2024-06-28 10:27:46 +02:00
Andy Wilkinson d2f74426f7 Work around bug in Gradle's Eclipse model
The model incorrectly marks the Gradle API and all of its
dependencies as test dependencies, making them unavailable in Eclipse
to code in src/main/java. We work around this by modifying the
classpath container to remove the test attribute from the
dependencies that should be available to main code.

See gh-41228
2024-06-27 12:58:36 +01:00
Moritz Halbritter 3e98a932e0 Polish BaggagePropagationIntegrationTests 2024-06-27 11:30:04 +02:00
Andy Wilkinson 4515c882c7 Merge branch 'gh-41228' into 3.2.x
Closes gh-41228
2024-06-27 09:55:59 +01:00
Phillip Webb 962936370a Don't report already migrated properties
Update `PropertiesMigrationReporter` so that already migrated properties
are not reported. Prior to this commit, if a deprecated property was
replaced by a property that could bind with the name relaxed name it
would be reported. For example: `test.someproperty` being replaced with
`test.some-property`.

In order to check the actual underlying property name, the
`PropertySourceOrigin` class has been updated so that it is always
returned, even if another `Origin` is available.

Fixes gh-35774
2024-06-26 16:24:32 -07:00
Andy Wilkinson 654016af7f Move Docker-related test support into a separate module
See gh-41228
2024-06-26 19:47:35 +01:00
Andy Wilkinson 843de3adbc Update spring-boot-test-autoconfigure to use docker-test plugin
See gh-41228
2024-06-26 19:46:41 +01:00
Andy Wilkinson ba053dbaac Update spring-boot-actuator to use docker-test plugin
See gh-41228
2024-06-26 19:46:37 +01:00
Andy Wilkinson 9f166f2c85 Update spring-boot-autoconfigure to use docker-test plugin
See gh-41228
2024-06-26 19:46:33 +01:00
Andy Wilkinson 89a06608d2 Update spring-boot-maven-plugin to use docker-test plugin
See gh-41228
2024-06-26 19:46:29 +01:00
Andy Wilkinson 7d5a761d51 Update spring-boot-gradle-plugin to use docker-test plugin
See gh-41228
2024-06-26 19:46:25 +01:00
Andy Wilkinson d5ef5e9c9d Update spring-boot-buildpack-platform to use docker-test plugin
See gh-41228
2024-06-26 19:46:08 +01:00
Andy Wilkinson 6fbf08fa9a Update spring-boot-docker-compose to use docker-test plugin
See gh-41228
2024-06-26 19:46:03 +01:00
Andy Wilkinson 3f1f801461 Update spring-boot-testcontainers to use docker-test plugin
See gh-41228
2024-06-26 19:45:52 +01:00
Andy Wilkinson 07442f8366 Exclude plexus-utils in favor of Maven's build-in version
Closes gh-41248
2024-06-26 16:59:23 +01:00
Andy Wilkinson 270f364aef Polish "Make conversion mechanism plural"
See gh-41244
2024-06-26 14:26:51 +01:00
Mateus Scheper 068b159799 Make conversion mechanism plural
Fixing typo for the "mechanism" word and improving readability by
adding ".".

See gh-41244
2024-06-26 14:26:00 +01:00
Phillip Webb 712d935c8e Fix checkstyle violation
See gh-35786
2024-06-25 22:16:03 -07:00
Phillip Webb eef4c3c2c0 Allow TestcontainersLifecycleBeanPostProcessor to detect scoped beans
Update `TestcontainersLifecycleBeanPostProcessor` so that scoped beans
are included.

Fixes gh-35786
2024-06-25 22:00:34 -07:00
Phillip Webb 8bcdb4b06b Improve error message when spring.config.import fails to resolve
Update `StandardConfigDataLocationResolver` to give a better error
message when a location cannot be resolved. Prior to this commit, a
location with a misspelling in the prefix would only give an error
about the file extension being not known.

Fixes gh-36243
2024-06-25 17:08:24 -07:00
Phillip Webb 85f6641a7e Allow 'npipe://' prefix in Docker host address
Update `LocalHttpClientTransport` to support explicit `npipe://` prefix
in the host name. This is the format used in the Docker config from
v4.31.1 onward.

Fixes gh-41199
2024-06-25 12:40:11 -07:00
Andy Wilkinson 98c11bb5df Use consistent current thread context classloader for initialization
Ensure `Thread.currentThread().getContextClassLoader()` returns the same
classloader for all types of initialization.

Prior to this commit, `JettyEmbeddedWebAppContext` would return a
different classloader when initializing Servlet and Filter classes. This
was due to the fact that our `deferredInitialize()` method has called
outside of a `getContext().call(...)`.

Fixes gh-37649

Co-authored-by: Phillip Webb <phil.webb@broadcom.com>
2024-06-24 16:03:00 -07:00
Phillip Webb 57f452fec1 Disable ReactorResourceFactory use of global resources in tests
Add `ContextCustomizerFactory` to automatically disable the use of
`ReactorResourceFactory` global resources in tests.

Fixes gh-38199
2024-06-24 11:22:11 -07:00
Andy Wilkinson b8927ebd90 Create ActiveMQConnectionFactory without using reflection
Fixes gh-41212
2024-06-24 11:51:31 +01:00
Moritz Halbritter 013a4dd2b7 Document tracing support for RestClient
Closes gh-41182
2024-06-21 11:03:54 +02:00
Stéphane Nicoll e9eeac9028 Use Spring Framework's NoOpResponseErrorHandler
See spring-projects/spring-framework#32750

Closes gh-41183
2024-06-20 18:28:36 +01:00
Moritz Halbritter c2f21e9fcd Don't execute @DockerComposeTests if docker is not running
Closes gh-41171
2024-06-20 08:47:56 +02:00
Phillip Webb 2a4582b084 Update copyright year of changed files 2024-06-19 22:54:40 -07:00
Andy Wilkinson 126e87e44d Fix appending of JDBC parameters to SQL Server JDBC URL
Fixes gh-41146
2024-06-19 22:51:40 -07:00
Andy Wilkinson 43cd24102f Rework Docker Compose integration tests
This commit introduces a new annotation, `@DockerComposeTest`,
that allows a test class to have multiple tests, each of which
uses a different Docker Compose YAML file.

Closes gh-41154
2024-06-19 22:34:38 -07:00
Andy Wilkinson 491f34d25c Improve container test code
Replace `DockerImageNames` with a enum and relocate it from the
`testcontainers` to `container` package. The enum now also
becomes a common location that we can use to apply container
configuration such as timeouts.

Closes gh-41164

Co-authored-by: Phillip Webb <phil.webb@broadcom.com>
2024-06-19 20:10:03 -07:00
Andy Wilkinson abf49e55db Upgrade to Spring Session 3.2.4
Closes gh-41026
2024-06-19 20:34:02 +01:00
Andy Wilkinson 02cb160057 Upgrade to Spring Integration 6.2.6
Closes gh-41021
2024-06-19 20:34:01 +01:00
Andy Wilkinson fd4dc4d719 Upgrade to Spring GraphQL 1.2.7
Closes gh-41020
2024-06-19 20:34:00 +01:00
Andy Wilkinson b606a6e4ca Upgrade to Spring Authorization Server 1.2.5
Closes gh-41017
2024-06-19 20:33:59 +01:00
Phillip Webb 242263d8d4 Update GitProperties date/time coercion to deal with more patterns
Update `GitProperties` to deal with updated date/time patterns that
are now used by the `git-commit-id` maven plugin. Previous patterns are
still supported as a fallback.

Fixes gh-41109
2024-06-18 17:01:03 -07:00
Andy Wilkinson 82fd923d00 Upgrade to Spring Security 6.2.5
Closes gh-41025
2024-06-18 09:09:44 +01:00
Andy Wilkinson 97b8c78411 Upgrade to Spring Pulsar 1.0.7
Closes gh-41024
2024-06-18 09:09:43 +01:00
Andy Wilkinson e2296be9a7 Upgrade to Spring Kafka 3.1.6
Closes gh-41022
2024-06-18 09:09:42 +01:00
Andy Wilkinson 2689b4dac0 Upgrade to Spring AMQP 3.1.6
Closes gh-41143
2024-06-18 09:09:41 +01:00
Phillip Webb 60b7e6cf23 Allow 'status' and 'error' to be excluded from error response
Update `ErrorAttributeOptions` to allow the `status` and `error`
fields to be excluded from the response without throwing a
NullPointerException.

Fixes gh-30011
2024-06-17 16:48:28 -07:00
Andy Wilkinson 1f698d8ea2 Prohibit .java8 Jaybird versions
Closes gh-41130
2024-06-17 14:13:12 +01:00
Andy Wilkinson beafbe5125 Upgrade to Spring LDAP 3.2.4
Closes gh-41023
2024-06-17 14:06:46 +01:00
Andy Wilkinson 10dcdccbe1 Upgrade to Spring Data Bom 2023.1.7
Closes gh-41018
2024-06-17 14:06:45 +01:00
Andy Wilkinson 7de738041e Upgrade to Pulsar Reactive 0.5.6
Closes gh-41129
2024-06-17 14:06:45 +01:00
Andy Wilkinson 3c99f2e5be Upgrade to jOOQ 3.18.17
Closes gh-41128
2024-06-17 14:06:40 +01:00
Andy Wilkinson 242afe1dcf Upgrade to Jaybird 5.0.5.java11
Closes gh-41127
2024-06-17 14:06:35 +01:00
Andy Wilkinson 138307c13c Disable test context cache in spring-boot-testcontainers
Closes gh-41124
2024-06-17 11:43:00 +01:00
Andy Wilkinson 03a87ccd69 Clarify how Container's Docker image name is used to name a connection
Closes gh-41111
2024-06-17 10:45:03 +01:00
Phillip Webb 96586525d5 Make DelegatingFilterProxyRegistrationBeanTests idempotent
Fixes gh-38630
2024-06-14 11:03:09 -07:00
Phillip Webb 0c1c7e844c Don't detect main method from launcher classes
Update `MainMethod` discovery so that launcher classes from the
`org.springframework.boot.loader` code are not considered. This restores
the behavior of Spring Boot 2.7.11 and allows remote restart of uber
jars without pulling the loader classes into the `RestartClassLoader`.

Fixes gh-39733
2024-06-14 10:40:49 -07:00
Andy Wilkinson 31f967723d Fix Mongo health indicators when using the strict V1 API
Closes gh-41101
2024-06-14 17:05:09 +01:00
Andy Wilkinson 3687e4c9aa Upgrade to Reactor Bom 2023.0.7
Closes gh-41016
2024-06-13 12:55:23 +01:00
Andy Wilkinson 622c0a9fbc Upgrade to Infinispan 14.0.29.Final
Closes gh-41096
2024-06-13 12:55:23 +01:00
Andy Wilkinson 2d2799784d Upgrade to Hibernate 6.4.9.Final
Closes gh-41095
2024-06-13 12:55:18 +01:00
Scott Frederick e228ed39b3 Support CNB builders that do not specify a stack
Fixes gh-41046
2024-06-12 15:16:21 -05:00
Moritz Halbritter fed13b0e0c Back off if DataSource is not on the classpath
Closes gh-41082
2024-06-12 11:02:51 +02:00
Phillip Webb bcbcafaab2 Polish "Use method references when possible in test code"
See gh-40974
2024-06-11 12:58:04 -07:00
Ahmed Ashour 207327d97c Use method references when possible in test code
See gh-40974
2024-06-11 12:58:00 -07:00
Phillip Webb dcccb3b2b1 Polish "Use method references when possible"
See gh-40974
2024-06-11 12:57:59 -07:00
Ahmed Ashour 507229eef8 Use method references when possible
See gh-40974
2024-06-11 12:57:55 -07:00
Ahmed Ashour 4f6509d5ff Prevent unnecessary unboxing
See gh-40985
2024-06-11 12:24:13 -07:00
Ahmed Ashour 623c395c0c Remove redundant cast
See gh-40985
2024-06-11 12:24:13 -07:00
Ahmed Ashour 2c5934dab2 Use 'switch' instead of 'if'
See gh-40985
2024-06-11 12:24:11 -07:00
Phillip Webb ecc9a2352d Polish "Use constructor rather than Collection.addAll"
See gh-41053
2024-06-11 10:02:27 -07:00
Piyal Ahmed 17adcfc180 Use constructor rather than Collection.addAll
See gh-41053
2024-06-11 09:39:45 -07:00
Phillip Webb d37098153c Polish 2024-06-11 09:35:59 -07:00
Andy Wilkinson 20fbe74dfe Upgrade to Netty 4.1.111.Final
Closes gh-41063
2024-06-11 15:09:29 +01:00
Andy Wilkinson 11835d1c96 Upgrade to Micrometer Tracing 1.2.7
Closes gh-41027
2024-06-11 15:09:29 +01:00
Andy Wilkinson 428a6248f2 Upgrade to Micrometer 1.12.7
Closes gh-41015
2024-06-11 15:09:29 +01:00
Andy Wilkinson 42de5506c8 Upgrade to Maven Help Plugin 3.4.1
Closes gh-41062
2024-06-11 15:09:29 +01:00
Andy Wilkinson 8628fc8831 Upgrade to jOOQ 3.18.16
Closes gh-41061
2024-06-11 15:09:28 +01:00
Andy Wilkinson 6e95529eb3 Upgrade to Jetty 12.0.10
Closes gh-41060
2024-06-11 15:09:28 +01:00
Andy Wilkinson db7efbbe82 Upgrade to Jetty Reactive HTTPClient 4.0.5
Closes gh-41059
2024-06-11 15:09:28 +01:00
Andy Wilkinson 62008fe6d5 Upgrade to Jersey 3.1.7
Closes gh-41058
2024-06-11 15:09:28 +01:00
Andy Wilkinson c703dbad1e Upgrade to HSQLDB 2.7.3
Closes gh-41057
2024-06-11 15:09:27 +01:00
Andy Wilkinson a51102319f Upgrade to FreeMarker 2.3.33
Closes gh-41056
2024-06-11 15:09:27 +01:00
Andy Wilkinson 60e02f83d8 Upgrade to Dropwizard Metrics 4.2.26
Closes gh-41055
2024-06-11 15:09:27 +01:00
Andy Wilkinson f71e5c8298 Upgrade to Byte Buddy 1.14.17
Closes gh-41054
2024-06-11 15:09:27 +01:00
Donghoon Lee 8920c2f269 Fix typo in javadoc
See gh-41052
2024-06-11 15:01:06 +02:00
Mateus Scheper 80b7107c56 Improve readability of the documentation
See gh-41051
2024-06-11 14:54:30 +02:00
Scott Frederick 2bb74b261c Disable stale checking for local Docker daemon connections
Fixes gh-40697
2024-06-10 17:27:02 -05:00
Andy Wilkinson 45e4f137de Start building against Spring Session 3.2.4 snapshots
See gh-41026
2024-06-10 10:26:37 +01:00
Andy Wilkinson b1e8216ccb Start building against Spring Security 6.2.5 snapshots
See gh-41025
2024-06-10 10:26:37 +01:00
Andy Wilkinson 70a12d79ec Start building against Spring Pulsar 1.0.7 snapshots
See gh-41024
2024-06-10 10:26:36 +01:00
Andy Wilkinson a253ede0c1 Start building against Spring LDAP 3.2.4 snapshots
See gh-41023
2024-06-10 10:26:36 +01:00
Andy Wilkinson a09e0e00b8 Start building against Spring Kafka 3.1.6 snapshots
See gh-41022
2024-06-10 10:26:35 +01:00
Andy Wilkinson 5f185df451 Start building against Spring Integration 6.2.6 snapshots
See gh-41021
2024-06-10 10:26:35 +01:00
Andy Wilkinson be33a3579c Start building against Spring GraphQL 1.2.7 snapshots
See gh-41020
2024-06-10 10:26:35 +01:00
Andy Wilkinson 26692a7f26 Upgrade to Neo4j Java Driver 5.21.0
Closes gh-41028
2024-06-10 10:26:34 +01:00
Andy Wilkinson 34b99bd6be Start building against Spring Data Bom 2023.1.7 snapshots
See gh-41018
2024-06-10 10:26:33 +01:00
Andy Wilkinson a2b1638d77 Start building against Spring Authorization Server 1.2.5 snapshots
See gh-41017
2024-06-10 10:26:33 +01:00
Andy Wilkinson a620bb4201 Start building against Reactor Bom 2023.0.7 snapshots
See gh-41016
2024-06-10 10:26:32 +01:00
Andy Wilkinson 1eb1dade94 Start building against Micrometer Tracing 1.2.7 snapshots
See gh-41027
2024-06-10 10:26:32 +01:00
Andy Wilkinson 73315b607f Start building against Micrometer 1.12.7 snapshots
See gh-41015
2024-06-10 10:21:26 +01:00
Andy Wilkinson fe536bf075 Allow SSL to be used with Tomcat's Http11Nio2Protocol
Fixes gh-41007
2024-06-07 12:46:19 +01:00
Andy Wilkinson 217c2c862b Ignore file entries in META-INF/versions of multi-release jar
Fixes gh-41001
2024-06-06 13:28:36 +01:00
Andy Wilkinson d4e9f458a3 Fix path handling and wrapping in LoaderHidingResource
Closes gh-39472
2024-06-05 12:33:21 +01:00
Andy Wilkinson 2ceb7b4217 Extract LoaderHidingResource as a top-level type
See gh-39472
2024-06-05 12:33:20 +01:00
Yanming Zhou 5cfd079c55 Remove unnecessary null check
See gh-40963
2024-06-04 08:39:26 +02:00
Khan, C M Abdullah 570522d876 Fix typos in method names and javadoc
See gh-40971
2024-06-03 14:05:52 +02:00
Andy Wilkinson dd6f516d66 Test Gradle Plugin against 8.8
Closes gh-40573
2024-06-03 08:29:02 +01:00
Ahmed Ashour f000af6a12 Remove unused parameter and polish javadoc
See gh-40955
2024-05-30 14:42:46 -05:00
Mateus Scheper 6c5ae329f3 Fix typo in Dev Services reference docs
See gh-40951
2024-05-30 14:27:27 -05:00
Andy Wilkinson 211bf95f45 Revert "Adapt to Spring Data Neo4j now requiring a transaction manager"
This reverts commit b6467ed826. Changes
in Spring Data Neo4j mean that these changes are no longer necessary.
They also caused a problem with multiple transaction managers being
present when mixing Neo4j and, say, Data JPA.

Closes gh-40895
2024-05-30 08:00:11 +01:00
Andy Wilkinson 10e23b8f35 Polish "Fix Flyway 10 in a GraalVM native image"
See gh-40821
2024-05-29 14:21:17 +01:00
Maziz 345edb1301 Fix Flyway 10 in a GraalVM native image
See gh-40821
2024-05-29 14:18:10 +01:00
erie0210 2e1ad6bdcc Add Kotlin example for @Testcontainers
See gh-40905
2024-05-29 14:28:11 +02:00
Khan, C M Abdullah ab2ba674b6 Fix various minor inconsistencies in the documentation
See gh-40900
2024-05-29 14:12:04 +02:00
vsanna 3ae1c111a0 Warn in the documentation that spring.profiles.group can only be used in non-profile-specific documents
See gh-40918
2024-05-29 14:02:14 +02:00
Andy Wilkinson 5ee0580339 Upgrade to the latest Framework 6.0.x release
Closes gh-40929
2024-05-28 16:52:00 +01:00
Andy Wilkinson d80cf05406 Remove unnecessary use of SingletonSupplier
As of Framework 6.1, it contains a field of a type that's
incompatible with Gradle's configuration cache.

Fixes gh-40911
2024-05-28 10:50:33 +01:00
Andy Wilkinson 477cdcae21 Upgrade to Spring Batch 5.1.2
Closes gh-40657
2024-05-22 19:14:48 +01:00
Andy Wilkinson 6ca3db067d Upgrade to Netty 4.1.110.Final
Closes gh-40878
2024-05-22 19:14:47 +01:00
Andy Wilkinson 0ffd7e6910 Upgrade to Byte Buddy 1.14.16
Closes gh-40877
2024-05-22 19:14:42 +01:00
Andy Wilkinson 35fb54a4d3 Polish deprecation notice 2024-05-22 17:02:29 +01:00
Scott Frederick 4e5cd2c2fd Fix default security options for bootBuildImage task
Fixes gh-39830
2024-05-22 07:56:15 -05:00
Chris Bono 7a7bcd07da Encode JSON string in Pulsar auth params
The values in the `spring.pulsar.client.authentication.param`
config props map are not currently JSON encoded. For simple
values this is fine. However, some custom auth modules may
require more complex parameter values that may contain special
characters that results in invalid JSON. This commmit encodes
the parameter values using a very simple hand-rolled escape
function.

See gh-40493
2024-05-22 13:49:05 +02:00
Andy Wilkinson d340f87c22 Disable test when Docker is not available
See gh-40585
2024-05-22 09:58:23 +01:00
Andy Wilkinson de75283f36 Upgrade to Spring Session 3.2.3
Closes gh-40663
2024-05-22 09:57:24 +01:00
Andy Wilkinson 7a60bbbba4 Upgrade to Spring Pulsar 1.0.6
Closes gh-40662
2024-05-22 09:57:23 +01:00
Andy Wilkinson 814f01551d Upgrade to Spring Integration 6.2.5
Closes gh-40660
2024-05-22 09:57:21 +01:00
Andy Wilkinson 468e246dbb Make sure container's started before connection details use it
Prior to this commit, a Testcontainer that was managed as a bean
would not have been started in time if it was accessed before
the bean factory's configuration had been frozen. A common way
for this to occur is when using JPA. The entity manager factory
bean is LoadTimeWeaverAware which causes it to be created before
configuration is frozen. Creating this bean requires the DataSource
which in turn requires the JdbcConnectionDetails and its JDBC URL.
Getting the JDBC URL From the connection details requires the
container hosting the SQL database to have been started.

This commit updates ContainerConnectionDetails, the super-class for
all Testcontainer-based ConnectionDetails implementations, to publish
an event when the Container is retrieved from the details. When this
event is published, TestcontainersLifecycleBeanPostProcessor
initializes all containers that are defined as beans.

Closes gh-40585
2024-05-22 09:15:21 +01:00
Andy Wilkinson 486ceecc9a Use the bean factory to get the type produced by a factory bean
Previously, we only looked at the OBJECT_TYPE_ATTRIBUTE on the
factory bean's definition. This did not work for situations
where the information's provided by the definition's target type
rather than the attribute.

Rather than manually considering the target type in addition to
the existing consideration of the attribute, we now ask the bean
factory for the type that will be produced by the factory bean
instead. This should insulate us from any changes and
enhancements in Framework in the future.

Fixes gh-40234
2024-05-21 15:27:59 +01:00
Andy Wilkinson a894879085 Use DefaultDbRefResolver whenever MongoDatabaseFactory is available
Fixes gh-39405
2024-05-21 10:29:39 +01:00
Andy Wilkinson 823cc90b46 Merge branch '3.1.x' into 3.2.x
Closes gh-40849
2024-05-21 10:28:59 +01:00
Andy Wilkinson f692fb1471 Ensure that Hazelcast binds to localhost for client tests
Closes gh-40848
2024-05-21 10:28:49 +01:00
Phillip Webb 39ab959af8 Merge branch '3.1.x' into 3.2.x
Closes gh-40845
2024-05-20 21:06:59 -07:00
Phillip Webb f743dc82fc Improve graceful shutdown documentation to remove ambiguity
Closes gh-40108
2024-05-20 21:06:22 -07:00
Phillip Webb 44619a9eef Merge branch '3.1.x' into 3.2.x
Closes gh-40843
2024-05-20 18:58:09 -07:00
Phillip Webb f5f02d6df1 Document that a private constructor opts-out of constructor binding
Closes gh-34820
2024-05-20 18:56:46 -07:00
Andy Wilkinson dda74cab94 Upgrade to Spring Kafka 3.1.5
Closes gh-40661
2024-05-20 20:33:14 +01:00
Andy Wilkinson 64ba92e29a Upgrade to Spring Kafka 3.0.17
Closes gh-40651
2024-05-20 20:31:25 +01:00
Andy Wilkinson 9d44468d44 Upgrade to Spring AMQP 3.1.5
Closes gh-40827
2024-05-20 18:00:50 +01:00
Andy Wilkinson 7c59dfb782 Upgrade to Spring AMQP 3.0.14
Closes gh-40824
2024-05-20 17:58:55 +01:00
Andy Wilkinson b718e5806f Merge branch '3.1.x' into 3.2.x
Closes gh-40838
2024-05-20 15:55:00 +01:00
Andy Wilkinson 1d91757061 Document that HttpMessageConverters can be used for reordering/removal
Closes gh-40767
2024-05-20 15:54:12 +01:00
Andy Wilkinson f440f2c3ac Merge branch '3.1.x' into 3.2.x
Closes gh-40834
2024-05-20 13:12:03 +01:00
Andy Wilkinson f5262d89df Add missing Testcontainers service connection tests
Closes gh-35039
2024-05-20 13:02:24 +01:00
Andy Wilkinson 75976713fe Polish "Fix typo in CertificateMatchingTestSource class"
See gh-40822
2024-05-20 10:14:45 +01:00
Piyal Ahmed 092e921433 Fix typo in CertificateMatchingTestSource class
See gh-40822
2024-05-20 10:13:39 +01:00
Andy Wilkinson 5b892b163f Start building against Spring AMQP 3.1.5 snapshots
See gh-40827
2024-05-20 09:58:09 +01:00
Andy Wilkinson b9fcd575ff Start building against Spring Integration 6.1.9 snapshots
See gh-40826
2024-05-20 09:56:59 +01:00
Andy Wilkinson 7ddbcac384 Start building against Spring AMQP 3.0.14 snapshots
See gh-40824
2024-05-20 09:56:48 +01:00
Scott Frederick 7f2b917851 Merge branch '3.1.x' into 3.2.x
Closes gh-40818
2024-05-17 11:41:23 -05:00
Scott Frederick 70aceb21eb Relocate test CNB builder and buildpack
The test CNB builder and buildpack used in integration tests have moved
from a projects.registry.vmware.com registry to ghcr.io/spring-io. This
commit modifies tests to use the new location.

Closes gh-40800
2024-05-17 10:59:41 -05:00
Andy Wilkinson bc854b14a1 Upgrade to Spring WS 4.0.11
Closes gh-40664
2024-05-17 12:27:02 +01:00
Andy Wilkinson 7a523b5f6e Upgrade to Spring Data Bom 2023.1.6
Closes gh-40658
2024-05-17 12:27:01 +01:00
Andy Wilkinson 04ebddc4ba Upgrade to Pulsar Reactive 0.5.5
Closes gh-40810
2024-05-17 12:27:00 +01:00
Andy Wilkinson a33fb25c4e Upgrade to Jetty Reactive HTTPClient 4.0.4
Closes gh-40809
2024-05-17 12:26:55 +01:00
Andy Wilkinson 7f5329fa4b Upgrade to Spring WS 4.0.11
Closes gh-40653
2024-05-17 12:24:21 +01:00
Andy Wilkinson 12a04c01d4 Upgrade to Spring Retry 2.0.6
Closes gh-40808
2024-05-17 12:24:20 +01:00
Andy Wilkinson 29a7bb2c7f Upgrade to Spring Data Bom 2023.0.12
Closes gh-40649
2024-05-17 12:24:16 +01:00
Andy Wilkinson f5d68e7b9f Upgrade to Jetty Reactive HTTPClient 3.0.13
Closes gh-40807
2024-05-17 12:24:15 +01:00
Scott Frederick d38c1e06b3 Ignore exceptions when deleting caches in bind cache tests
See gh-40760
2024-05-16 22:19:04 -05:00
Scott Frederick bdc6508b62 Catch any exception when deleting image building workspace
See gh-40760
2024-05-16 21:19:51 -05:00
Scott Frederick cd441130bd Warn when image building workspace directories cannot be deleted
When the `buildWorkspace` location in the
`spring-boot:build-image` Maven goal or `bootBuildImage` Gradle
task is configured to use a local bind source, the location
is passed to the CNB lifecycle without further processing by
Spring Boot. The lifecycle is in control of creating any files
in the specified location. Spring Boot tries to remove the
directories at the specified location after an image is
successfully created, but should not fail the image build
if the lifecycle has created files or directories with
permissions that keep them from being deleted successfully.

Fixes gh-40760
2024-05-16 17:37:44 -05:00
Andy Wilkinson 524424bc98 Merge branch '3.1.x' into 3.2.x
Closes gh-40795
2024-05-16 18:20:52 +01:00