Commit Graph

21406 Commits (38fdef6ec4b9d2078f9af4e9dc3aa9bc8d3fef37)

Author SHA1 Message Date
Andy Wilkinson 31f0a69469 Start building against Reactor Bom 2022.0.8 snapshots
See gh-35736
1 year ago
Andy Wilkinson c07d8bef17 Start building against Micrometer Tracing 1.0.7 snapshots
See gh-35735
1 year ago
Andy Wilkinson 538aad723a Start building against Micrometer 1.10.8 snapshots
See gh-35734
1 year ago
Andy Wilkinson 5e963b02a7 Start building against Spring WS 3.1.7 snapshots
See gh-35732
1 year ago
Andy Wilkinson adc2077be3 Start building against Spring Session Bom 2021.2.2 snapshots
See gh-35731
1 year ago
Andy Wilkinson a47112bbeb Start building against Spring Security 5.7.9 snapshots
See gh-35730
1 year ago
Andy Wilkinson c680a892fe Start building against Spring Data Bom 2021.2.13 snapshots
See gh-35728
1 year ago
Andy Wilkinson a04f6b3b02 Start building against Spring AMQP 2.4.13 snapshots
See gh-35727
1 year ago
Andy Wilkinson 163f5052c1 Start building against Reactor Bom 2020.0.33 snapshots
See gh-35726
1 year ago
Andy Wilkinson d92012b82f Start building against Micrometer 1.9.12 snapshots
See gh-35725
1 year ago
Andy Wilkinson cdcebe452c Polish "Test Gradle plugin against Gradle 8.2-rc-1"
See gh-35708
1 year ago
rafaelrc7 ed47e09c13 Implement validity check to spring.rabbitmq.host config property
As discussed on issue #35628, at some point the host property accepted
multiple comma-separated hosts. However, this was not intended, and for
better clarification, it was decided to implement a clearer error
message for this situation.

See gh-35684
1 year ago
Andy Wilkinson 45ce18e1c7 Polish "Test Gradle plugin against Gradle 8.2-rc-1"
See gh-35708
1 year ago
Andy Wilkinson d6192a0fa1 Merge branch '3.0.x'
Closes gh-35708
1 year ago
Andy Wilkinson 5a793a6d49 Merge branch '2.7.x' into 3.0.x
Closes gh-35707
1 year ago
Andy Wilkinson 5623fe3b94 Test Gradle plugin against Gradle 8.2-rc-1
Closes gh-35699
1 year ago
Scott Frederick f29a0d8c29 Merge branch '3.0.x'
Closes gh-35690
1 year ago
Scott Frederick 6a763f9be4 Merge branch '2.7.x' into 3.0.x
Closes gh-35689
1 year ago
Scott Frederick c847db77e6 Correct precedence in description of MongoDB properties
Closes gh-35686
1 year ago
Scott Frederick a02eb48528 Fix building of MongoDB connection string with authentication db
This commit restores the previous behavior of MongoDB auto-
configuration, where the value of the
`spring.data.mongodb.authentication-database` is set in the
credentials when provided.

Fixes gh-35567
1 year ago
Scott Frederick 593fa1dc42 Allow Mongo database property to override database in URI
This commit restores the previous behavior of MongoDB auto-
configuration, where the value of the `spring.data.mongodb.database`
property takes precedence over the database specified in a
`spring.data.mongodb.uri` property.

Fixes gh-35566
1 year ago
Yanming Zhou e8659da59b Fix error in SSL bundle documentation
See gh-35665
1 year ago
Andy Wilkinson 0ec804f6c3 Upgrade to Testcontainers 1.18.2
Closes gh-35677
1 year ago
Andy Wilkinson f0c40a469b Merge branch '3.0.x'
Closes gh-35654
2 years ago
Andy Wilkinson a58e98af05 Fix binding to constructor bound lateinit properties
Closes gh-35603
2 years ago
Moritz Halbritter eb9077df86 Document how to customize the JDBC parameters when using Docker Compose
Closes gh-35636
2 years ago
Andy Wilkinson 127004b4c5 Merge branch '3.0.x'
Closes gh-35647
2 years ago
Andy Wilkinson 5ad0d49ec1 Fix hints for `@Bean` config props that could be constructor bound
Previously, if a `@ConfigurationProperties`-annotated `@Bean` method
returned a type that looked like it could be constructor bound, the
registered runtime hints were incorrect. With only the bean's class
to work with, the hints registrar would incorrectly determine that
the type would be constructor bound and would not register the hints
required for Java bean binding.

This commit updates the registrar to allow the caller to provide a
Bindable which knows both what should be bound and how it should be
bound, thereby allowing the registrar to generate the correct hints.
The tests for the AOT processor have also been updated to remove
duplication of the tests in BindableRuntimeHintsRegistrarTests and
to focus on the contribution creating Bindable instances with the
bind method that is required to produce the correct reflection hints.

Closes gh-35564

Co-authored-by: Phillip Webb <pwebb@vmware.com>
2 years ago
Andy Wilkinson 1d2a41fd1a Merge branch '3.0.x'
Closes gh-35646
2 years ago
Andy Wilkinson eb60cf4988 Remove duplication of BindableRuntimeHintsRegistrarTests
There were several tests in CPBFIAPT that were duplicating tests in
BindableRuntimeHintsRegistrarTests. To test the AOT processor, all
that is really necessary is to assert that the expected types are
found and passed to BindableRuntimeHintsRegistrar. The tests for
BindableRuntimeHintsRegistrar are then responsible for asserting
that the expected hints are generated for the various different
types.

Closes gh-35645
2 years ago
Andy Wilkinson 75f55cc35a Merge branch '3.0.x'
Closes gh-35644
2 years ago
Andy Wilkinson f03f062770 Move BindMethod to context.properties.bind and expose on Bindable
Closes gh-35642

Co-authored-by: Phillip Webb <pwebb@vmware.com>
2 years ago
Andy Wilkinson 604a1e9538 Merge branch '3.0.x'
Closes gh-35641
2 years ago
Phillip Webb 581a32b107 Polish ConfigurationPropertiesBean
Closes gh-35640
2 years ago
Andy Wilkinson fa49e2b6c6 Merge branch '3.0.x'
Closes gh-35639
2 years ago
Phillip Webb bfbae581d7 Extract BindMethodAttribute class
Create a `BindMethodAttribute` class to manage attribute logic.

Closes gh-35638
2 years ago
Andy Wilkinson 6a74f63143 Merge branch '3.0.x'
Closes gh-35634
2 years ago
Andy Wilkinson a9f89a1e3c Merge branch '2.7.x' into 3.0.x
Closes gh-35633
2 years ago
Andy Wilkinson f452a86175 Polish "Document audience support in Oauth2 resource server"
See gh-35286
2 years ago
Bikash Adhikari 13c5c6efb1 Document audience support in Oauth2 resource server
See gh-35286
2 years ago
kitbolourchi 1ac6e9ebe1 Upgrade Kafka image used in integration tests
See gh-35625
2 years ago
Stephane Nicoll dcb97594c3 Merge branch '3.0.x'
Closes gh-35618
2 years ago
Stephane Nicoll 44c2090092 Polish "Fix description of build-image[-no-fork] Maven plugin goals"
See gh-35609
2 years ago
Thomas Kåsene e84025b1b8 Fix description of build-image[-no-fork] Maven plugin goals
See gh-35609
2 years ago
Scott Frederick 703883d302 Merge branch '3.0.x'
Closes gh-35610
2 years ago
Scott Frederick 72fd94f2b5 Align bean name with Spring Data Elasticsearch requirements
Fixes gh-33651
2 years ago
Moritz Halbritter 157b71b333 Add missing defaults for docker compose properties
Closes gh-35598
2 years ago
Moritz Halbritter b82e7a72b1 Move @Testcontainers before @SpringBootTest in documentation
Closes gh-35572
2 years ago
Moritz Halbritter d841490f5f Enable ZipkinProperties in ZipkinAutoConfiguration
Closes gh-35592
2 years ago
Moritz Halbritter ad108952c8 Fix JavaDoc in ServiceConnection
Closes gh-35594
2 years ago
Stephane Nicoll 9643dbeed2 Merge branch '3.0.x'
Closes gh-35590
2 years ago
Christoph Dreis b2b5728995 Remove unnecessary exclude from spring-restdocs-mockmvc
See gh-35568
2 years ago
Stephane Nicoll 7a9bb55fdf Merge branch '3.0.x'
Closes gh-35589
2 years ago
Johnny Lim 1b5fc89b43 Polish
See gh-35576
2 years ago
Eddú Meléndez a3caf8102e Polish
See gh-35577
2 years ago
Scott Frederick 0ca3ab7249 Polish Javadoc
See gh-35545
2 years ago
Phillip Webb 1ec78e5437 Add devtools and docker-compose to test maven repository
See gh-35548
2 years ago
Phillip Webb c2961a1e4a Exclude docker-compose and devtools during AOT processing
Update `ProcessAotMojo` so that `spring-boot-docker-compose` and
`spring-boot-devtools` are not included on the classpath.

Fixes gh-35548
2 years ago
Andy Wilkinson 713d74d794 Merge branch '3.0.x'
See gh-35554
2 years ago
Andy Wilkinson 54e769be3a Polish
See gh-35553
2 years ago
Andy Wilkinson dd74f8caba Merge branch '3.0.x'
Closes gh-35554
2 years ago
Andy Wilkinson af9cd8cf0b Merge branch '2.7.x' into 3.0.x
Closes gh-35553
2 years ago
Phillip Webb 418dd1ba5b Return 406 status code if welcome page is not accepted
Add `WelcomePageNotAcceptableHandlerMapping` which will return
an HTTP 406 status if a suitable welcome page is found but
cannot be accepted for the request.

An additional mapper is used so that we don't need to change
the order of the `WelcomePageHandlerMapping`. It's possible
that users may have additional root handler mappings
registered to run after the `WelcomePageHandlerMapping`
and we still need to respect those.

Fixes gh-35552
2 years ago
Andy Wilkinson b6e56c85a0 Upgrade to Json-smart 2.4.11
Closes gh-35551
2 years ago
Andy Wilkinson e6160fca8e Upgrade to Jersey 3.1.2
Closes gh-35550
2 years ago
Andy Wilkinson cc2bb7cade Upgrade to Json-smart 2.4.11
Closes gh-35549
2 years ago
Andy Wilkinson 75ffbc921d Account for new loggers property in FlywayPropertiesTets
See gh-35158
2 years ago
Phillip Webb e3aac5913e Polish property order
Keep "flyway teams" properties at the end.
2 years ago
Phillip Webb cf95ae92ea Allow flyway loggers to be configured and provide SLF4J default
Add `spring.flyway.loggers` property which can be used to configure
Flyway loggers and has a default value of "slf4j".

Closes gh-35158
2 years ago
Phillip Webb d7b4353e99 Polish "Add property defaults for Spring Authorization Server"
See gh-35460
2 years ago
Steve Riesenberg 42c3cba18e Add property defaults for Spring Authorization Server
See gh-35460
2 years ago
Phillip Webb 3b1f4e6296 Upgrade to Spring Batch 5.0.2
Closes gh-35309
2 years ago
Phillip Webb f88cc5eb94 Upgrade to Spring Batch 5.0.2
Closes gh-35300
2 years ago
Phillip Webb 0743da4987 Merge branch '3.0.x'
Closes gh-35546
2 years ago
Phillip Webb 4072588c29 Polish "Fix invalid Zipkin Reporter back-off behavior"
See gh-35455
2 years ago
ryosuke-hasebe 903e19854d Fix invalid Zipkin Reporter back-off behavior
Update `ReporterConfiguration` so that `spanReporter` back off
if a `Reporter` bean is defined. Prior to this commit, only
`AsyncReporter` beans would be considered.

See gh-35455
2 years ago
Phillip Webb 9bacf4218c Set 'spring.docker.compose.readiness.wait' property in devtools
Default 'spring.docker.compose.readiness.wait' to `ONLY_IF_STARTED`
when using devtools.

See gh-35435
2 years ago
Andy Wilkinson 6ad71c9b0c Reduce number of CLI calls to improve startup time with devtools
Update `DockerComposeLifecycleManager` so that `docker ps` is
not called multiple times.

See gh-35435
2 years ago
Phillip Webb b0c76c1f79 Cache docker commands to improve startup time with devtools
Update `DockerCli` so that the docker commands are cached. This helps
improve startup time when using devtools with docker compose.

See gh-35435
2 years ago
Phillip Webb a8602a1814 Allow docker compose service readiness checks to be bypassed
Add `spring.docker.compose.readiness.wait` property that can be used to
determine how Spring Boot should wait for docker compose services to
become ready.

Fixes gh-35545
2 years ago
Phillip Webb 6b0b6ccf49 Move docker compose readiness code and make it package-private
The `ReadinessCheck` interface has been removed making the dedicated
package less necessary. By relocating the code we can make more of it
pacakge-private.

See gh-35544
2 years ago
Phillip Webb 060581d078 Remove pluggable docker compose ReadinessCheck
Remove pluggable `ReadinessCheck` interface and only use the
`TcpConnectServiceReadinessCheck` implementation for now. We
may re-introduce pluggable checks in a future version.

See gh-35544
2 years ago
Andy Wilkinson 3d41e41b94 Polish
Make logger a static field.
2 years ago
Johnny Lim 54f85b1181 Fix since version for ImageReference
See gh-35459
2 years ago
Andy Wilkinson 1097164a0e Merge branch '3.0.x'
Closes gh-35457
2 years ago
Andy Wilkinson aabb164892 Merge branch '2.7.x' into 3.0.x
Closes gh-35456
2 years ago
Andy Wilkinson d66563d544 Polish "Improve formatting of Kotlin permitAll example"
See gh-35454
2 years ago
Junsu Park 11a1de1e64 Improve formatting of Kotlin permitAll example
See gh-35454
2 years ago
Stephane Nicoll 7c62a6ad3d Upgrade to Spring Integration 6.1.0
Closes gh-35314
2 years ago
Phillip Webb ae90add7c7 Polish 2 years ago
Phillip Webb 595fc13b34 Future proof SpringApplication.from(...) by returning a wrapper type
Update `SpringApplication.run` to that it returns a wrapper which
provides access to the `ApplicationContext` rather than the
`ApplicationContext` directly.

This should provide a natural place to add more accessors in the future
should we need to.

Closes gh-35451
2 years ago
Ben Gilbert 7674c55cd7 Align spring.flyway.execute-in-transaction property with Flyway default
See gh-35447
2 years ago
Andy Wilkinson f5ff8007be Adapt to deprecation of rejectIllegalHeader
Closes gh-35442
2 years ago
Sébastien Deleuze becff01db1 Improve Kotlin Testcontainers samples
Make those code samples more idiomatic.

See gh-35446
2 years ago
Andy Wilkinson c631f04391 Upgrade to Spring Integration 5.5.18
Closes gh-35294
2 years ago
Andy Wilkinson 541c58336b Upgrade to Undertow 2.3.6.Final
Closes gh-35450
2 years ago
Andy Wilkinson 7ce95225cb Upgrade to Spring Session 3.1.0
Closes gh-35317
2 years ago
Andy Wilkinson b4b870a531 Upgrade to Spring GraphQL 1.2.0
Closes gh-35312
2 years ago
Andy Wilkinson df35f035b4 Upgrade to Spring Authorization Server 1.1.0
Closes gh-35308
2 years ago
Brian Clozel b26115711f Remove unnecessary test for GraphQL Connection
This commit removes an unnecessary test that checks for the pagination
and Connection support in Spring for GraphQL. After a change in
spring-projects/spring-graphql#707, we no longer can test this in
isolation, nor does it make sense to test this integration that
deeply.

See gh-35449
2 years ago
Andy Wilkinson 99b2de02b3 Upgrade to Undertow 2.3.6.Final
Closes gh-35448
2 years ago
Andy Wilkinson 6c7e151cb2 Upgrade to Spring GraphQL 1.1.4
Closes gh-35303
2 years ago
Andy Wilkinson 1dbe09c553 Revert "Upgrade to Testcontainers 1.18.1"
This reverts commit a6db093ec4.

See gh-35430
2 years ago
Andy Wilkinson 37cc6b6a70 Merge branch '3.0.x'
Closes gh-35444
2 years ago
Andy Wilkinson c39a37cd23 Exclude developmentOnly dependences from AOT processing classpaths
Fixes gh-35433
2 years ago
Stephane Nicoll 2de6577140 Upgrade to Spring Security 6.1.0
Closes gh-35316
2 years ago
Stephane Nicoll 416b9122ac Upgrade to Netty 4.1.92.Final
Closes gh-35443
2 years ago
Stephane Nicoll 47cd3bb052 Upgrade to Netty 4.1.92.Final
Closes gh-35441
2 years ago
Stephane Nicoll a9739e109f Upgrade to Hazelcast 5.1.6
Closes gh-35440
2 years ago
Phillip Webb 08c3cccc92 Merge branch '3.0.x' 2 years ago
Phillip Webb 4e305cc209 Merge branch '2.7.x' into 3.0.x 2 years ago
Phillip Webb a75cd014fc Merge branch '2.6.x' into 2.7.x 2 years ago
Phillip Webb 95d1cb9884 Merge branch '2.5.x' into 2.6.x 2 years ago
Phillip Webb 8316a96515 Polish 2 years ago
Phillip Webb 25b0a4a67b Merge branch '2.5.x' into 2.6.x
Fixes gh-35438
2 years ago
Andy Wilkinson 086b1e5f58 Stop WebFilterChainPostProcessor from causing eager init
Fixes gh-35437
2 years ago
Phillip Webb 1ca1145875 Test compatibility with SnakeYAML 1.32 and 1.33 versions
Closes gh-35434
2 years ago
Stephane Nicoll a6db093ec4 Upgrade to Testcontainers 1.18.1
Closes gh-35430
2 years ago
Stephane Nicoll 6b6c3d79d6 Upgrade to Spring Kafka 3.0.7
Closes gh-35376
2 years ago
Stephane Nicoll d0ba57658c Upgrade to SAAJ Impl 3.0.2
Closes gh-35432
2 years ago
Stephane Nicoll 64cc8212d9 Upgrade to jOOQ 3.18.4
Closes gh-35431
2 years ago
Stephane Nicoll ac8a756485 Upgrade to Spring Kafka 3.0.7
Closes gh-35375
2 years ago
Stephane Nicoll cf0e6822fc Upgrade to SAAJ Impl 3.0.2
Closes gh-35429
2 years ago
Stephane Nicoll db222dfd0f Upgrade to jOOQ 3.17.13
Closes gh-35428
2 years ago
Stephane Nicoll 2b461892c3 Upgrade to Hazelcast 5.1.6
Closes gh-35427
2 years ago
Johnny Lim 4239b96943 Polish
See gh-35417
2 years ago
Johnny Lim e4bf2187bc Revert accidental author changes in FlywayAutoConfiguration
See commit 7ffacf43f3

See gh-35418
2 years ago
Moritz Halbritter aa0fa42ebd Merge branch '3.0.x'
Closes gh-35425
2 years ago
Moritz Halbritter 9e963bce58 Add Hibernate runtime hints
This adds hints for the two No JtaPlatform candidates as well as for
the naming strategies.

Closes gh-35423
2 years ago
Stephane Nicoll b4c906c010 Upgrade to Spring Data Bom 2023.0.0
Closes gh-35310
2 years ago
Stephane Nicoll 99c7257b6c Upgrade to Micrometer Tracing 1.1.1
Closes gh-35421
2 years ago
Stephane Nicoll 9a10aa356e Upgrade to Spring Data Bom 2022.0.6
Closes gh-35301
2 years ago
Stephane Nicoll e4bd62499d Upgrade to Micrometer Tracing 1.0.6
Closes gh-35420
2 years ago
Stephane Nicoll 5f86c11f92 Upgrade to Spring Data Bom 2021.2.12
Closes gh-35292
2 years ago
Phillip Webb c984ddb6b7 Merge branch '2.5.x' into 2.6.x
Closes gh-35415
2 years ago
Phillip Webb ef1401fcc9 Fix formatting 2 years ago
Andy Wilkinson d1d990acd7 Improve compatibility with SnakeYAML 2.0
Closes gh-35414
2 years ago
Phillip Webb 27c8da66f1 Merge branch '2.5.x' into 2.6.x
Closes gh-35412
2 years ago
Madhura Bhave 307f3c3399 Use endpoint mappings in CloudFoundry integration
Closes gh-35411
2 years ago
Phillip Webb e3ed87d165 Merge branch '3.0.x' 2 years ago
Phillip Webb 92e420a098 Merge branch '2.7.x' into 3.0.x 2 years ago
Phillip Webb 57e45dfb21 Update copyright year of changed files 2 years ago
Phillip Webb ef4b09718c Fix loading of PKCS#8 PEM encoded EC and DSA keys for buildpack
Polish and port support for PKCS#8 PEM encoded EC and DSA keys to
the buildpack code.

See gh-35322
2 years ago
Phillip Webb e9c4a5d663 Polish 2 years ago
Phillip Webb 585286e472 Revert "Resolve errors in layers.xsd" for 2.5
Revert layers.xsd fix to reduce risk of a regression since it has not
yet made it into a 2.5 release.

This reverts commit f185b0767a, reversing
changes made to bf3c6dfdba.

See gh-31126
2 years ago
Moritz Halbritter b70399e998 Merge branch '3.0.x' 2 years ago
Moritz Halbritter 7b4056df7f Merge branch '2.7.x' into 3.0.x 2 years ago
Moritz Halbritter 700e89097c Polish
See https://stackoverflow.com/questions/28671903/the-hashsett-removeall-method-is-surprisingly-slow
2 years ago
Stephane Nicoll e60944fba1 Upgrade to Spring HATEOAS 2.1.0
Closes gh-35313
2 years ago
Stephane Nicoll 8a0c405150 Upgrade to Spring LDAP 3.0.3
Closes gh-35404
2 years ago
Stephane Nicoll 8731e777d8 Upgrade to Spring HATEOAS 2.0.4
Closes gh-35325
2 years ago
Andy Wilkinson 01ba8c071f Upgrade to Spring WS 4.0.4
Closes gh-35318
2 years ago
Andy Wilkinson 352526b098 Upgrade to Spring LDAP 3.1.0
Closes gh-35315
2 years ago
Andy Wilkinson ca36c0b3ae Upgrade to Spring WS 4.0.4
Closes gh-35304
2 years ago
Andy Wilkinson 9f55d5de18 Revert "Start building against Spring WS 3.1.7 snapshots"
This reverts commit 2b03e51a19.

See gh-35295
2 years ago
Andy Wilkinson 2ca787f78c Merge branch '3.0.x'
Closes gh-35400
2 years ago
Andy Wilkinson acafb907f6 Generate hints for all methods that JavaBeanBinder may call
Fixes gh-35397
2 years ago
Andy Wilkinson c254610e4d Improve testing of BindableRuntimeHintsRegistrar
Closes gh-35398
2 years ago
Andy Wilkinson 88866d7baf Merge branch '3.0.x'
Closes gh-35399
2 years ago
Andy Wilkinson 2d08ba18c1 Improve testing of BindableRuntimeHintsRegistrar
Closes gh-35398
2 years ago
Moritz Halbritter e930801eb1 Separate tag in the Docker API tag call
Closes gh-35358
2 years ago
Moritz Halbritter d00e070cdb Separate tag in the Docker API tag call
Closes gh-35358
2 years ago
Moritz Halbritter 4eef8d5a53 Separate tag in the Docker API tag call
Closes gh-35358
2 years ago
Phillip Webb 60930c0285 Merge branch '2.5.x' into 2.6.x 2 years ago
Phillip Webb 9af19370a6 Backport build and CI concerns
Backport build and CI concerns primarily related to repo.spring.io
changes and Docker config.
2 years ago
Scott Frederick 271cbb76c1 Improve documentation for including Docker Compose support in a build
Closes gh-35384
2 years ago
Scott Frederick 8377306668 Improve error when Docker Compose file not found
Fixes gh-35383
2 years ago
Steve Riesenberg 10feecbd08 Fix redirect to login page for token requests
Fixes an issue where auto-configuration for Spring Authorization Server
was overriding the default exception handling (AuthenticationEntryPoint)
resulting in anonymous requests to the token endpoint being redirected
to the Spring Security login page instead of returning 401 Unauthorized.

Auto-configuration now registers a defaultAuthenticationEntryPointFor
that is added to any other entry points already configured.

See gh-35368
2 years ago
Christoph Dreis 6086e81ccd Fix configuring replica set via PropertiesMongoConnectionDetails
See gh-35370
2 years ago
Moritz Halbritter 9f787050b4 Merge branch '3.0.x'
Closes gh-35381
2 years ago
Moritz Halbritter 53d2a9fb34 Merge branch '2.7.x' into 3.0.x
Closes gh-35380
2 years ago
Moritz Halbritter ec4d52e381 Add ReactiveResponseConsumer classpath check to http5 auto-configuration
Closes gh-34964
2 years ago
Moritz Halbritter 0ebb32e7f0 Merge branch '3.0.x'
Closes gh-35379
2 years ago
Moritz Halbritter 7e50485b23 Merge branch '2.7.x' into 3.0.x
Closes gh-35378
2 years ago
Moritz Halbritter 947ac8df73 Map MinIdle and MaxValidationTime to R2DBC pools
Closes gh-34724
2 years ago
Stephane Nicoll d488759cae Start building against Spring WS 4.0.4 snapshots
See gh-35318
2 years ago
Stephane Nicoll e3c126ae54 Start building against Spring Batch 5.0.2 snapshots
See gh-35309
2 years ago
Stephane Nicoll 157e0d5b20 Start building against Spring Kafka 3.0.7 snapshots
See gh-35376
2 years ago
Stephane Nicoll a9e7b902b5 Start building against Spring Kafka 3.0.7 snapshots
See gh-35375
2 years ago
Stefano Cordio d802ca017b Small assertions improvements
See gh-34796
2 years ago
Johnny Lim ff9fd1abeb Polish
See gh-35185
2 years ago
Yanming Zhou 1cddb2a55f Fix typo
See gh-35369
2 years ago
Moritz Halbritter 05add58976 Merge branch '3.0.x'
Closes gh-35373
2 years ago
Moritz Halbritter 42cc84070b Merge branch '2.7.x' into 3.0.x
Closes gh-35372
2 years ago
Moritz Halbritter 52789cb191 Fix anchors in Maven plugin documentation
Closes gh-35371
2 years ago
Andy Wilkinson 93c3116b3a Fix failsGracefullyWhenNoTestMainMethodIsFound on Windows 2 years ago
Christoph Dreis 2d1a403605 Fix javadoc in OAuth2AuthorizationServerPropertiesMapper
See gh-35366
2 years ago
Moritz Halbritter 0f1870ee98 Merge branch '3.0.x'
Closes gh-35367
2 years ago
Moritz Halbritter 077f61bd5d Allow loading of YAML files bigger than 3 MB
Closes gh-34743
2 years ago
Stephane Nicoll 2b7bed8bf7 Upgrade to Reactor Bom 2022.0.7
Closes gh-35307
2 years ago
Stephane Nicoll dad68573c7 Upgrade to Micrometer Tracing 1.1.0
Closes gh-35306
2 years ago
Stephane Nicoll 33cc926669 Upgrade to Micrometer 1.11.0
Closes gh-35305
2 years ago
Stephane Nicoll 568e168aeb Upgrade to Reactor Bom 2022.0.7
Closes gh-35299
2 years ago
Stephane Nicoll 47c37c1014 Upgrade to Micrometer Tracing 1.0.5
Closes gh-35363
2 years ago
Stephane Nicoll 3635bead5c Upgrade to Micrometer 1.10.7
Closes gh-35298
2 years ago
Stephane Nicoll 21cca4f30d Upgrade to Reactor Bom 2020.0.32
Closes gh-35291
2 years ago
Stephane Nicoll e47738b84d Upgrade to Micrometer 1.9.11
Closes gh-35290
2 years ago
Moritz Halbritter 0391860ec3 Merge branch '3.0.x'
Closes gh-35365
2 years ago
Moritz Halbritter 086d654f0b Add support for Ed25519 EC keys
See gh-35364
2 years ago
Moritz Halbritter 69ac9bbe6d Merge branch '2.7.x' into 3.0.x
Closes gh-35364
2 years ago
Moritz Halbritter c238049729 Fix loading of PKCS#8 PEM encoded EC and DSA keys
Closes gh-35322
2 years ago
Andy Wilkinson 2b6b178560 Merge branch '3.0.x'
Closes gh-35362
2 years ago
Andy Wilkinson 6c1c8fb405 Merge branch '2.7.x' into 3.0.x
Closes gh-35361
2 years ago
Andy Wilkinson 7427e2d527 Polish "Fix test for backing off when a TransactionManager is already defined"
See gh-35336
2 years ago
davin111 cf5500fc78 Fix test for backing off when a TransactionManager is already defined
See gh-35336
2 years ago
Moritz Halbritter c00e6ebbdf Merge branch '3.0.x'
Closes gh-35360
2 years ago
Moritz Halbritter 1c87fcb806 Add property to disable DisableObservabilityContextCustomizer
Closes gh-35009
2 years ago
Moritz Halbritter a4092fb396 Remove HTML tags from TestRunMojo javadoc
Closes gh-35349
2 years ago
Moritz Halbritter 1504e3043d Document devtools when using testcontainers at dev time
See gh-35200
2 years ago
Stephane Nicoll 9c37a8e819 Upgrade to Neo4j Java Driver 5.8.0
Closes gh-35352
2 years ago
Stephane Nicoll 5b510f94ec Upgrade to Groovy 4.0.12
Closes gh-35351
2 years ago
Stephane Nicoll 3532c64d8b Upgrade to Couchbase Client 3.4.6
Closes gh-35350
2 years ago
Stephane Nicoll ad2ecd3923 Upgrade to Neo4j Java Driver 5.8.0
Closes gh-35347
2 years ago
Stephane Nicoll 3403be09b3 Upgrade to JUnit Jupiter 5.9.3
Closes gh-35346
2 years ago
Stephane Nicoll ed3cf8fd1f Upgrade to Jakarta Activation 2.1.2
Closes gh-35345
2 years ago
Stephane Nicoll 173d24840f Upgrade to Jackson Bom 2.14.3
Closes gh-35344
2 years ago
Stephane Nicoll 7eda3ed669 Upgrade to Infinispan 14.0.9.Final
Closes gh-35343
2 years ago
Stephane Nicoll a87193716e Upgrade to Groovy 4.0.12
Closes gh-35342
2 years ago
Stephane Nicoll 2992e5808b Upgrade to Couchbase Client 3.4.6
Closes gh-35341
2 years ago
Stephane Nicoll bc63c511e7 Merge branch '3.0.x' 2 years ago
Stephane Nicoll 9d56b419cd Adapt to change in Spring Framework snapshots
Binding to an HashMap now consistently return a LinkedHashMap.
2 years ago
Stephane Nicoll 40a392f65b Upgrade to Johnzon 1.2.20
Closes gh-35340
2 years ago
Stephane Nicoll 96c792050e Upgrade to Elasticsearch 7.17.10
Closes gh-35339
2 years ago
Scott Frederick a474e54cf3 Merge branch '3.0.x'
Closes gh-35244
2 years ago
Scott Frederick cf180fa1cc Merge branch '2.7.x' into 3.0.x
Closes gh-35243
2 years ago
Scott Frederick 5d91c24f63 Update Couchbase image tag used in tests
Closes gh-35228
2 years ago
Andy Wilkinson fd4b7d7f7a Merge branch '3.0.x'
Closes gh-35330
2 years ago
Andy Wilkinson ce96cc3026 Merge branch '2.7.x' into 3.0.x
Closes gh-35329
2 years ago
Andy Wilkinson 6dc84b1645 Ignore non-singleton factory beans when resetting mocks
Closes gh-35324
2 years ago
Andy Wilkinson 07a11045d9 Merge branch '3.0.x'
Closes gh-35328
2 years ago
Andy Wilkinson fd864c35aa Improve mapping of resolved artifacts to dependency coordinates
Closes gh-31216
2 years ago
Moritz Halbritter 441ed30ee4 Polish "Replace Mockito argument captors with assertArg"
Co-authored-by: Andy Wilkinson <wilkinsona@vmware.com>

See gh-35015
2 years ago
Stephane Nicoll 414c260bc0 Start building against Spring HATEOAS 2.0.4 snapshots
See gh-35325
2 years ago
Stephane Nicoll 0649605db1 Start building against Spring GraphQL 1.2.0 snapshots
See gh-35312
2 years ago
Stephane Nicoll 4ec4bf0d33 Start building against Spring Session 3.1.0 snapshots
See gh-35317
2 years ago
Stephane Nicoll cb0c677080 Start building against Spring Security 6.1.0 snapshots
See gh-35316
2 years ago
Stephane Nicoll c738f04c05 Start building against Spring LDAP 3.1.0 snapshots
See gh-35315
2 years ago
Stephane Nicoll 2fa6bd28ce Start building against Spring Integration 6.1.0 snapshots
See gh-35314
2 years ago
Stephane Nicoll fc9c4a61f3 Start building against Spring HATEOAS 2.1.0 snapshots
See gh-35313
2 years ago
Stephane Nicoll 1b582ac302 Start building against Spring Data Bom 2023.0.0 snapshots
See gh-35310
2 years ago
Stephane Nicoll 8e3b465de7 Start building against Spring Authorization Server 1.1.0 snapshots
See gh-35308
2 years ago
Stephane Nicoll ee2cd5c251 Start building against Micrometer Tracing 1.1.0 snapshots
See gh-35306
2 years ago
Stephane Nicoll 7d6ddb74f1 Start building against Micrometer 1.11.0 snapshots
See gh-35305
2 years ago
Moritz Halbritter afa929cd6b Polish documentation 2 years ago
Moritz Halbritter cf38c2fd37 Update all keystores with new keys and certificates
See gh-35106
2 years ago
Stephane Nicoll c01680e9a8 Start building against Spring GraphQL 1.1.4 snapshots
See gh-35303
2 years ago
Stephane Nicoll ae0efba523 Merge branch '3.0.x'
See gh-35312
2 years ago
Stephane Nicoll 1b4f9a7e9c Remove GraphQL's tracing observation auto-configuration
This commit removes the auto-configuration for
PropagationWebGraphQlInterceptor as it has been deprecated with no
replacement.

See gh-35303
2 years ago
Stephane Nicoll 66cc9d73b8 Merge branch '3.0.x' 2 years ago
Stephane Nicoll be29ab389a Merge branch '2.7.x' into 3.0.x 2 years ago
Stephane Nicoll eeefb2a1de Polish 2 years ago
Marc Leroux b61834c92d Replace Mockito argument captors with assertArg
See gh-35015
2 years ago
Moritz Halbritter 4d14d0e437 Merge branch '3.0.x'
Closes gh-35321
2 years ago
Moritz Halbritter 8a14f6d017 Clarify conditional support when using AOT
Closes gh-35262
2 years ago
Moritz Halbritter e356a483b6 Add subject alt to JKS store and re-enable OkHttp SSL tests
Closes gh-35106
2 years ago
Stephane Nicoll 984481e150 Start building against Spring WS 4.0.4 snapshots
See gh-35304
2 years ago
Moritz Halbritter c4deae3906 Document that Spring Boot by default calls 'docker compose stop' 2 years ago
Stephane Nicoll e95c0496c1 Start building against Spring Data Bom 2022.0.6 snapshots
See gh-35301
2 years ago
Stephane Nicoll d9f28c513d Start building against Spring Batch 5.0.2 snapshots
See gh-35300
2 years ago
Stephane Nicoll 968006cc19 Start building against Reactor Bom 2022.0.7 snapshots
See gh-35299
2 years ago
Stephane Nicoll 28024b2d7f Start building against Micrometer 1.10.7 snapshots
See gh-35298
2 years ago
Stephane Nicoll 2b03e51a19 Start building against Spring WS 3.1.7 snapshots
See gh-35295
2 years ago
Stephane Nicoll d614d1336e Start building against Spring Integration 5.5.18 snapshots
See gh-35294
2 years ago
Stephane Nicoll f32923da1a Start building against Spring Data Bom 2021.2.12 snapshots
See gh-35292
2 years ago
Stephane Nicoll b4715f5e1e Start building against Reactor Bom 2020.0.32 snapshots
See gh-35291
2 years ago
Stephane Nicoll ec72bcc9a8 Start building against Micrometer 1.9.11 snapshots
See gh-35290
2 years ago
Phillip Webb 56af1569d3 Refine @ImportTestcontainers support
Refine logic so that bean names are no longer generated based on their
type and containers are started early.

See gh-35245
2 years ago
Scott Frederick 1143396531 Add smoke tests to verify Couchbase SSL connections
See gh-34811
2 years ago
Scott Frederick d4107a8185 Add smoke tests to verify Cassandra SSL connections
See gh-25602
2 years ago
Andy Wilkinson 4f9616c2f9 Change DockerComposeProperties shut down default to stop
Closes gh-35239
2 years ago
Andy Wilkinson 6a39b497ad Make Oracle Docker Compose integration tests more robust
Closes gh-35285
2 years ago
Andy Wilkinson c78cc4408a Disable more s-b-testcontainers tests when Docker is unavailable
See gh-35245
2 years ago
Andy Wilkinson d224f69c7b Upgrade to R2DBC MySQL 1.0.1
Closes gh-35284
2 years ago
Andy Wilkinson 9169a9daa2 Upgrade to Netty 4.1.92.Final
Closes gh-35283
2 years ago
Andy Wilkinson 8cd3741e16 Upgrade to Mockito 5.3.1
Closes gh-35282
2 years ago
Andy Wilkinson 38ba2b98bc Upgrade to MariaDB 3.1.4
Closes gh-35281
2 years ago
Andy Wilkinson 8de41b43ae Upgrade to JUnit Jupiter 5.9.3
Closes gh-35279
2 years ago
Andy Wilkinson 6f816d196d Upgrade to Jakarta Activation 2.1.2
Closes gh-35278
2 years ago
Andy Wilkinson c4da29e1ab Upgrade to Jackson Bom 2.15.0
Closes gh-35277
2 years ago
Andy Wilkinson bae40eeffe Upgrade to Infinispan 14.0.9.Final
Closes gh-35276
2 years ago
Andy Wilkinson 306dc637a0 Upgrade to Hibernate 6.2.2.Final
Closes gh-35275
2 years ago
Andy Wilkinson c52c48e444 Upgrade to Elasticsearch Client 8.7.1
Closes gh-35274
2 years ago
Andy Wilkinson 7477ec135d Switch Bomr's upgrade policy to same minor version 2 years ago
Stephane Nicoll e6afc490b0 Expose ApplicationContext when using SpringApplication#from
This commit returns the running application context when running an
application via SpringApplication#from so that it is consistent with
the regular SpringApplication#run.

Closes gh-35203
2 years ago
Andy Wilkinson 10fd7517a8 Disable ImportTestcontainersTests when Docker is unavailable
See gh-35245
2 years ago
Andy Wilkinson 19d7973776 Add bootTestRun to run app using test source set output and classpath
Closes gh-35248
2 years ago
Stephane Nicoll a14b1d6807 Merge branch '3.0.x'
Closes gh-35272
2 years ago
Thebora Kompanioni 319f98680b Add reference to Tor Spring Boot Starter
See gh-35256
2 years ago
Andy Wilkinson e43998615c Add a test-run goal to the Maven plugin
Closes gh-35202
2 years ago
Moritz Halbritter 5f84588b5d Merge branch '3.0.x'
Closes gh-35270
2 years ago
Moritz Halbritter ea4521acdb Merge branch '2.7.x' into 3.0.x
Closes gh-35269
2 years ago
Moritz Halbritter 6ca9f91a8b Fix NPE when gracefully shutting down netty
Closes gh-35264
2 years ago
Jonatan Ivanov 5142e8e157
Support Brave's joint spans
Brave has a feature called joint spans that was enabled by default with
Spring Cloud Sleuth (and Boot 2.x). This has changed with
Micrometer Tracing and Boot 3.x. In order to make migration simpler,
joint spans should be set through a property.
This is a Brave+B3-only feature, W3C is not supported by Brave and
OTel does not have this capability.

See gh-35165
2 years ago
Andy Wilkinson 8494ad82cd Merge branch '3.0.x'
Closes gh-35255
2 years ago
Andy Wilkinson 0776d01f16 Merge branch '2.7.x' into 3.0.x
Closes gh-35254
2 years ago
Andy Wilkinson fad24d5ced Fix handling of default port in mail health indicator
Fixes gh-35247
2 years ago
Moritz Halbritter 243b337954 Remove copyright from the anchor-rewrite.properties 2 years ago
Moritz Halbritter 46fedfc4ef Move JAR unpacking section and add AOT on JVM section
Closes gh-32905
2 years ago
Moritz Halbritter bdca30e85b Polish 2 years ago
Moritz Halbritter 71f4247340 Improve headings
See gh-32779
2 years ago
Moritz Halbritter 56b8e419be Update getting started with alternative gradle instructions
Closes gh-32779
2 years ago
Moritz Halbritter 9b5a2643cc Polish "Add service connection from Testcontainers Zipkin"
See gh-35107
2 years ago
Eddú Meléndez ad4f6ffeb7 Add service connection from Testcontainers Zipkin
See gh-35107
2 years ago
Phillip Webb 8427e813af Support import of idomatic testcontainer declaration classes
Add an `@ImportTestcontainers` annotation which can be used to import
idomatic testcontainer declaration classes.

Closes gh-35245
2 years ago
Phillip Webb 26566d4a30 Allow testcontainer beans to also contribute properties
Allow `Container` bean definitions to inject a `DynamicPropertyRegistry`
so that they can contribute environment properties.

Closes gh-35201
2 years ago
Phillip Webb e9578fe745 Swallow BeanCurrentlyInCreationException exceptions
Update `TestcontainersLifecycleBeanPostProcessor` to that initialization
doesn't fail if a `BeanCurrentlyInCreationException` is thrown.

Prior to this commit, if the first bean being post-processed was a
configuration class declaring a bean that the `Container` depended on
all initialization would fail.

See gh-35223
2 years ago
Phillip Webb 3997771f6c Polish 2 years ago
Phillip Webb d86e82d026 Merge branch '3.0.x' 2 years ago
Phillip Webb 2c27ec5b7b Merge branch '2.7.x' into 3.0.x 2 years ago
Phillip Webb b3226c55d2 Polish 2 years ago
Phillip Webb 8e18862582 Merge branch '3.0.x' 2 years ago
Phillip Webb 8d1fb3be4f Fix index error on test
See gh-35241
2 years ago
Phillip Webb a890323758 Merge branch '3.0.x' 2 years ago
Phillip Webb 0f242ab3f7 Merge branch '2.7.x' into 3.0.x 2 years ago
Phillip Webb 6b646f6a8e Update copyright year of changed files 2 years ago
Phillip Webb cd5f0dff21 Merge branch '3.0.x'
Closes gh-35242
2 years ago
Phillip Webb 722cbc66c6 Merge branch '2.7.x' into 3.0.x
Closes gh-35241
2 years ago
Phillip Webb 5ef0ee0ed4 Prevent early initialization of SessionRepository beans
Replace `SessionRepositoryFilterConfiguration` filter registration bean
with a `DelegatingFilterProxyRegistrationBean` so that
`SessionRepository` beans are not initialized early.

Fixes gh-35240
2 years ago
Scott Frederick 23ae91b008 Add native image manifest entry
A manifest entry `Spring-Boot-Native-Processed: true` is added to the
jar manifest by the Maven or Gradle plugin when the jar has been built
for use in a native image. With the Gradle plugin, this is done in
reaction to the GraalVM Native Image Plugin being applied to the
project. With the Maven plugin, this is done when the `native` profile
is applied to the build.
2 years ago
Scott Frederick 5ac6a3d90b Add smoke test to verify MongoDB SSL connections
See gh-35042
2 years ago
Scott Frederick 3bb271e320 Add smoke test to verify Redis SSL connection
See gh-34815
2 years ago
Andy Wilkinson 161b54b1d4 Set Logback's root log level to INFO as early as possible
Closes gh-35238
2 years ago
Andy Wilkinson aafe343ce6 Merge branch '3.0.x'
Closes gh-35237
2 years ago
Andy Wilkinson 9a39bf284b Merge branch '2.7.x' into 3.0.x
Closes gh-35235
2 years ago
Andy Wilkinson 7c2c2ebb1b Make ApplicationAvailabilityBean receive events with lazy init
Fixes gh-35161
2 years ago
Moritz Halbritter 9d50d92b9c Merge branch '3.0.x' 2 years ago
Moritz Halbritter 1f4a337ad2 Merge branch '2.7.x' into 3.0.x 2 years ago
Moritz Halbritter 091d6204cb Disable build image integration tests on aarch64 linux and mac
See gh-35229
2 years ago
Moritz Halbritter 7c725a7560 Polish DockerImageNames 2 years ago
Moritz Halbritter 2586150eaf Disable ARM incompatible integration tests 2 years ago
Moritz Halbritter 735c43ce9b Merge branch '2.7.x' into 3.0.x 2 years ago
Moritz Halbritter 312f0c17ed Set initial ElasticSearch heap size in integration tests 2 years ago
Moritz Halbritter 944d77491b Set initial heap size for ElasticSearch integration tests 2 years ago
Moritz Halbritter 9a545727b9 Disable SQL server and Oracle database compose tests on ARM
See gh-35229
2 years ago
Moritz Halbritter 1ce88f25b4 Merge branch '3.0.x' 2 years ago
Moritz Halbritter 037cb8c5b0 Merge branch '2.7.x' into 3.0.x 2 years ago
Moritz Halbritter c1cef099d2 Limit maximum heap of ElasticSearch in tests 2 years ago
Moritz Halbritter d7a9f87b64 Disable Neo4j tests on aarch64 linux and mac
See gh-35228
2 years ago
Moritz Halbritter 9f109fe785 Disable Couchbase integration tests on aarch64 linux and mac
See gh-35228
2 years ago
Andy Wilkinson 419d8c22b2 Merge branch '3.0.x'
Closes gh-35231
2 years ago
Andy Wilkinson 8f291abc2b Merge branch '2.7.x' into 3.0.x
Closes gh-35230
2 years ago
Juhan Aasaru 3b70286747 Correct list of annotations equivalent to @SpringBootApplication
See gh-35180
2 years ago
Andy Wilkinson d24167371e Merge branch '3.0.x'
Closes gh-35226
2 years ago
Andy Wilkinson 8f3f74ffd5 Merge branch '2.7.x' into 3.0.x
Closes gh-35225
2 years ago
Andy Wilkinson 695e58f418 Align buildSrc's Framework version with the main build's version
Closes gh-35224
2 years ago
Andy Wilkinson b1d0433d74 Handle Kafka servers as strings and rely on Kafka's parsing
Closes gh-34770
2 years ago
Phillip Webb dc4efaf276 Initialize containers first and destroy them last
Update `TestcontainersLifecycleBeanPostProcessor` so that on
initialization of the first bean all `Container` instances are started.

With this update all `Container` beans will be started first in the
`preInstantiateSingletons` phase and destroyed last.

Closes gh-35223
2 years ago
Phillip Webb 14bc354f7f Apply initializer automatically for context tests
Update `ServiceConnectionContextCustomizer` so that is applies the
`TestcontainersLifecycleApplicationContextInitializer` to all
application contexts.

Closes gh-35222
2 years ago
Phillip Webb 632c5d7ea5 Implement ServiceConnectionContextCustomizer equals and hashcode for key
Update `ServiceConnectionContextCustomizer` with `equals` and `hashcode`
methods so that it works correctly when part of a context cache key.

Closes gh-35216
2 years ago
Phillip Webb 25e3291d86 Broaden exceptions that include ServiceConnection name hint
See gh-35168
2 years ago
Phillip Webb 2c0edfd0b5 Merge branch '3.0.x'
Closes gh-35221
2 years ago
Phillip Webb 67abe3f88e Merge branch '2.7.x' into 3.0.x
Closes gh-35220
2 years ago
Phillip Webb 4e6148f47b Search for main methods from the bottom of the stack
Update `MainMethod` to search from the bottom of the stack rather than
the start. Prior to this commit, an incorrect `main` method would be
found if more than one `main` was in the stack.

Fixes gh-35214
2 years ago
Andy Wilkinson 8fe20c5d63 Derive LiquibaseConnectionDetails from JdbcConnectionDetails
Closes gh-35141
2 years ago
Andy Wilkinson d293df6617 Derive FlywayConnectionDetails from JdbcConnectionDetails
Rather than implementing factories for FlywayConnectionDetails for
each supported SQL database, we instead use a factory to takes
JdbcConnectionDetails as a source and produces
FlywayConnectionDetails.

Closes gh-35138
2 years ago
Phillip Webb b4cd2572d5 Prevent early initialization of Container beans
Update testcontainers auto-configuration so that `Container` bean
instances are no longer needed when registering `ConnectionDetails`
beans. Registration now occurs based on the bean type and the `name`
attribute of `@ServiceConnection`.

Fixes gh-35168
2 years ago
Phillip Webb c21cf31853 Switch order of ContainerConnectionDetailsFactory generics
Switch `ContainerConnectionDetailsFactory` so that `Container`
is before `ConnectionDetails`.
2 years ago
Phillip Webb fc5339f81c Polish 2 years ago
Phillip Webb c13041201d Don't call close methods for reusable testcontainers
Refine `TestcontainersLifecycleApplicationContextInitializer` so that
the `close()` method is not called for reusable containers.

Closes gh-35210
2 years ago
Phillip Webb e7357ba805 Increase timeout in OracleR2dbcContainerConnectionDetailsFactoryTests 2 years ago
Phillip Webb d1084ee6db Refactor ContainerConnectionDetailsFactory classes
Update `ContainerConnectionDetailsFactory` so that they consistently
extend `ContainerConnectionDetails`. The container is also no longer
accessible from the `ContainerConnectionSource` and is never used
during the construction of `ConnectionDetails` instances.

See gh-35168
2 years ago
Phillip Webb 403481ff96 Add 'required' parameter to ConnectionDetailsFactories
Update `ConnectionDetailsFactories` so that callers can now declare if
a result is required or not and improve exception hierarchy.

See gh-35168
2 years ago
Phillip Webb 2b261e6ebd Apply TestTypeExcludeFilter in regular applications
Add `ExcludeFilterApplicationContextInitializer` to register the
`TestTypeExcludeFilter` for regular applications.

Prior to this commit, the filter was only registered using the
`ExcludeFilterContextCustomizerFactory` which meant that test components
were filtered in tests but not when using `SpringApplication.from` with
a test classpath.

Fixes gh-35206
2 years ago
Scott Frederick d913472919 Add Kotlin samples and polish SSL bundle documentation
Closes gh-35105
2 years ago
Andy Wilkinson ce7bf0d0af Merge branch '3.0.x'
Closes gh-35197
2 years ago
Andy Wilkinson 4581c25e20 Merge branch '2.7.x' into 3.0.x
Closes gh-35196
2 years ago
Andy Wilkinson de2df9311c Test Gradle plugin against Gradle 8.1.1
Closes gh-35195
2 years ago
Andy Wilkinson 09527995d1 Polish 2 years ago
Andy Wilkinson a75f55aaa5 Try to stabilize SQL Server tests on CI 2 years ago
Moritz Halbritter 4131e7338d Fix LogMessage format 2 years ago
Moritz Halbritter 75207db6be Polish docker compose code 2 years ago
Moritz Halbritter 8abebd75fb Use shutdownHandlers parameter in constructor 2 years ago
Moritz Halbritter 176cc20c36 Polish FlywayConfiguration 2 years ago
Moritz Halbritter 27ab98b49d Polish ConnectionDetailsFactories 2 years ago
Andy Wilkinson cec159110d Do not block indefinitely when querying SQL database 2 years ago
Andy Wilkinson d7da77bda8 Remove support for service connections to InfluxDB
Closes gh-35189
2 years ago
Scott Frederick 428434c873 Polish SslOptions usage
Change getter methods to return arrays, as this is how most client
library usages need the options.

See gh-34814
2 years ago
Scott Frederick 226c3005d4 Add SSL bundle support to Redis auto-configuration
Update Redis auto-configuration with Lettuce and Jedis drivers to
allow SSL configuration with an SSL bundle.

Closes gh-34815
2 years ago
Andy Wilkinson 8bbe894665 Add Docker Compose service connection support for Oracle using JDBC
Closes gh-35145
2 years ago
Andy Wilkinson 5e73047164 Align SQL Server-related class names with existing precedents
Closes gh-35181
2 years ago
Andy Wilkinson 1e785e81f8 Add Docker Compose support for Oracle Database using R2DBC
Closes gh-35143
2 years ago
Andy Wilkinson 8fd36d04e1 Improve MsSqlServerR2dbcDockerComposeConnectionDetailsFactory tests
See gh-35144
2 years ago
Andy Wilkinson 963da20493 Reinstate dependency management for io.r2dbc:r2dbc-mssql
Closes gh-35159
2 years ago
Andy Wilkinson b5178afa21 Add Docker Compose support for MS SQL Server using JDBC
Closes gh-35146
2 years ago
Andy Wilkinson 9a0b5e0178 Merge branch '3.0.x'
Closes gh-35173
2 years ago
Andy Wilkinson 7ee1622995 Merge branch '2.7.x' into 3.0.x
Closes gh-35172
2 years ago
Andy Wilkinson b03f1e47d0 Merge branch '3.0.x'
Closes gh-35171
2 years ago
Andy Wilkinson d6e3db9c36 Merge branch '2.7.x' into 3.0.x
Closes gh-35170
2 years ago
Andy Wilkinson 6b9bc012a5 Check that BPP and BFPP bean methods won't cause eager initialization
Closes gh-35164
2 years ago
Phillip Webb b5c9e7c06a Polish SslOptions usage
Add helper method and tighten usage so that exceptions are thrown when
options cannot be applied.

See gh-34814
2 years ago
Phillip Webb 423c60acfa Add SSL bundle support to Elasticsearch auto-configuration
Update Elasticsearch RestClient auto-configuration so that an SSL
can be configured via an SSL bundle.

Closes gh-35155
2 years ago
Scott Frederick e9a85b91a8 Polish 2 years ago
Andy Wilkinson 472afafd4b Stop WebFilterChainPostProcessor from causing eager init
Fixes gh-35163
2 years ago
Scott Frederick 43b42eca49 Add Docker Compose service connection support for Cassandra
Closes gh-35136
2 years ago
Scott Frederick 2bec82ab2f Delete disabled docker compose tests 2 years ago
Stephane Nicoll d55cd3b46f Merge branch '3.0.x'
Closes gh-35160
2 years ago
Stephane Nicoll b286e5a0bb Prevent ServletComponentScan to run again with AOT
Closes gh-34563
2 years ago
Yanming Zhou b615aef810 Fix dependency management for spring-boot-testcontainers
This commit adds org.testcontainers:testcontainers as an api dependency
of spring-boot-testcontainers so that GenericContainer can be used
without an additional dependency

See gh-35119
2 years ago
Stephane Nicoll facf48e423 Polish "Prevent container to be closed twice"
See gh-35120
2 years ago
Yanming Zhou 5df6913f18 Prevent container to be closed twice
See gh-35120
2 years ago
Andy Wilkinson fd6214e7e3 Remove accidentally committed test classes 2 years ago
Phillip Webb e0b03661d4 Merge branch '3.0.x' 2 years ago
Phillip Webb 8a43710173 Merge branch '2.7.x' into 3.0.x 2 years ago
Phillip Webb a707c5e83e Polish "Fix support for default values in banner placeholders"
Reorder methods and add a test to ensure that getPropertyResolvers
can be mutated.

See gh-34764
2 years ago
Andy Wilkinson dee5217cf0 Add Docker Compose support for MS SQL Server using R2DBC
Closes gh-35144
2 years ago
Phillip Webb 0f032c290a Allow for predicate based checking of image names
Update `DockerComposeConnectionDetailsFactory` to accept a `Predicate`
based check to determine if the source should be accepted.

The existing name based checks have also been improved to allow names
outside of official docker images. The `ImageReference` and `ImageName`
classes have been mainly copied from
`org.springframework.boot.buildpack.platform.docker.type`.

Closes gh-35154
2 years ago
Phillip Webb 19221f00f3 Deprecate `spring.cassandra.ssl` configuration property
Deprecate the `spring.cassandra.ssl` configuration property in favor
of `spring.cassandra.ssl.enabled`.

See gh-25602
2 years ago
Scott Frederick ff35cc80d7 Allow Couchbase SSL to be enabled without custom trust material
Closes gh-35147
2 years ago
Scott Frederick 1d44b45b5d Deprecate Couchbase SSL keyStore properties
The properties `spring.couchbase.env.ssl.key-store`
and `spring.couchbase.env.ssl.key-store-password`
are deprecated in favor of configuring an SSL bundle with
`spring.couchbase.env.ssl.bundle`. The older properties
have somewhat confusing names, since they are used to
configure a trust store in Couchbase, and they don't
provide all the options that an SSL bundle provides.

Closes gh-35135
2 years ago
Andy Wilkinson 9cd04c55fb Merge branch '3.0.x'
Closes gh-35132
2 years ago
Andy Wilkinson 598e090e8f Merge branch '2.7.x' into 3.0.x
Closes gh-35131
2 years ago
Andy Wilkinson 90952a2dd9 Do not turn a null Flyway-specific password into an empty string
It prevents using PGPASS for authentication with Postgres.

Fixes gh-35110
2 years ago
Andy Wilkinson 7ffacf43f3 Use main DataSource when there are no migration-specific conn details
Fixes gh-35109
2 years ago
Stephane Nicoll 363dc9368d Merge branch '3.0.x'
Closes gh-35130
2 years ago
Stephane Nicoll 7f0402f869 Merge branch '2.7.x' into 3.0.x
Closes gh-35129
2 years ago
Ivan Dimitrov f4db73ead9 Harmonize references to application.yaml files in reference docs
See gh-34628
2 years ago
Lukasz Jernas d38a68ebcd Fix typo in testing docs
See gh-35128
2 years ago
Phillip Webb a0b854024b Add a 'Docker Compose Support' section to the reference docs
Update the reference documentation with details about the recently
introduced Docker Compose Support.

Closes gh-35026
2 years ago
Phillip Webb e19aa81813 Polish formatting 2 years ago
Phillip Webb 6ea2547de4 Add SSL bundle support to WebClient auto-configuration
Introduce `WebClientSsl` interface and auto-configuration to allow a
WebClient builder to have custom SSL configuration applied.

The previous `ClientHttpConnectorConfiguration` has been been changed
to now create `ClientHttpConnectorFactory` instances which can be used
directly or by `AutoConfiguredWebClientSsl`.

Closes gh-18556
2 years ago
Phillip Webb c59c8cc674 Change SslOptions to use null for defaults rather than empty sets
Update `SslOptions` so that `null` is used for default values rather
than empty sets. Most libraries use `null` to indicate defaults so
aligning our class makes things easier.

See gh-34814
2 years ago
Phillip Webb 77c468c956 Add test to check SSL RestTemplate requests work against server
Add a test to `AbstractClientHttpRequestFactoriesTests` to ensure
that SSL configuration works when calling a real Tomcat server.

See gh-34810
2 years ago
Phillip Webb 72c1f667f5 Fix @Since javadoc in RestTemplateBuilder
See gh-34810
2 years ago
Scott Frederick b6befd133c Add SSL bundle support to RestTemplateBuilder auto-configuration
Update RestTemplateBuilder auto-configuration so that an SSL can be
configured via an SSL bundle.

Closes gh-34810
2 years ago
Scott Frederick fd5fd1491a Add SSL bundle support to MongoDB auto-configuration
Update MongoDB auto-configuration so that an SSL can be configured
via an SSL bundle.

Closes gh-35042
2 years ago
Scott Frederick 1618aa2dac Add SSL bundle support to Couchbase auto-configuration
Update Couchbase auto-configuration so that an SSL can be configured
via an SSL bundle.

Closes gh-34811
2 years ago
Scott Frederick 682457377a Add SSL bundle support to Cassandra auto-configuration
Update Cassandra auto-configuration so that an SSL can be configured
via an SSL bundle.

Closes gh-25602
2 years ago
Scott Frederick a03f857059 Document update SSL support
Add a new SSL section to the reference documentation to describe SSL
bundles.

See gh-34814
2 years ago
Scott Frederick 66db13b962 Refactor web server support to use SslBundles
Update Tomcat, Jetty, Undertow and Netty servers so that an SslBundle
is used to apply SSL configuration. Existing `Ssl` properties are
internally adapted to an `SslBundle` using the `WebServerSslBundle`
class. Additionally, if `Ssl.getBundle()` returns a non-null value the
the `SslBundles` bean will be used to find a registered bundle by name.

See gh-34814
2 years ago
Scott Frederick 8e1f24f98f Add SSL bundle auto-configuration support
Add auto-configuration for SSL bundles including new configuration
properties that can be used to define a bundle.

SSL bundle properties are provided under the `spring.ssl.bundle` key.
Currently `jks` and `pem` variants are support. Both are configured
as a `Map` where the bundle name is the key.

A typical example would be:

    spring:
      ssl:
        bundle:
          pem:
            mybundle
              key:
                password: secret
              keystore:
                certificate: classpath:mycert.pem
                private-key: classpath:mykey.pem

A `SslBundleRegistrar` interface is also provided to allow programmatic
contributions to the auto-configured `SslBundleRegistry`.

See gh-34814
2 years ago
Scott Frederick e3677f7ff6 Add SSL bundle support to spring-boot module
Add classes to support SSL bundles which can be used to apply SSL
settings in a centralized way. An `SslBundle` can be registered with
an `SslBundleRegistry` and obtained from an `SslBundles` instance. The
`DefaultSslBundleRegistry` provides a default in-memory implementation.

Different client libraries often configure SSL in slightly different
ways. To accommodate this, the `SslBundle` provides a layered approach
of obtaining SSL information:

	- `getStores` provides access to the key store and trust stores
	  as well as any required key store password.

	- `getManagers` provides access to the `KeyManagerFactory`,
	  `TrustManagerFactory` as well as the `KeyManger` and
	  `TrustManager` arrays that they create.

	- `createSslContext` provides a convenient way to obtain a new
	  `SSLContext` instance.

In addition, the `SslBundle` also provides details about the key being
used, the protocol to use and any options that should be applied to the
SSL engine.

See gh-34814
2 years ago
Andy Wilkinson e61adc6cbf Allow even more time for Redpanda to start 2 years ago
Andy Wilkinson b64adbc34b Fix disabled conditions on AbstractDockerComposeIntegrationTests 2 years ago
Andy Wilkinson cbc03783d0 Allow startup to contiune when ConnectionDetailsFactory load fails
Prior to this commit, a failure to load a ConnectionDetailsFactory
caused startup to fail. This causes problems when some of a
factory's required classes were not available, for examle when using
spring-boot-docker-compose without Actuator.

Fixes gh-35100
2 years ago
Andy Wilkinson bc58df3467 Prohibit upgrades to Liquibase 4.21.1
See gh-34983
2 years ago
Andy Wilkinson 26c98eded9 Upgrade to Tomcat 10.1.8
Closes gh-35095
2 years ago
Andy Wilkinson dbab743018 Upgrade to Spring Integration 6.1.0-RC1
Closes gh-34973
2 years ago
Andy Wilkinson 68b25598b9 Upgrade to Spring GraphQL 1.2.0-RC1
Closes gh-34972
2 years ago
Andy Wilkinson 5965df39b5 Upgrade to Selenium HtmlUnit 4.8.3
Closes gh-35094
2 years ago
Andy Wilkinson 503e88f2ec Upgrade to Logback 1.4.7
Closes gh-35093
2 years ago
Andy Wilkinson b80f4cc985 Upgrade to Tomcat 10.1.8
Closes gh-35089
2 years ago
Andy Wilkinson ca618e84d3 Upgrade to Spring Integration 6.0.5
Closes gh-35012
2 years ago
Andy Wilkinson 35fd0a3f69 Upgrade to Logback 1.4.7
Closes gh-35088
2 years ago
Andy Wilkinson 04780650a1 Merge branch '3.0.x'
Closes gh-35087
2 years ago
Andy Wilkinson 32444fed4b Merge branch '2.7.x' into 3.0.x
Closes gh-35086
2 years ago
Madhura Bhave 3522714c13 Use endpoint mappings in CloudFoundry integration
Closes gh-35085
2 years ago
Andy Wilkinson c55d398f95 Validate health group includes and excludes
Closes gh-34360
2 years ago
Andy Wilkinson a03fe8befc Enable customization of JWK Set URI decoder builders
Closes gh-20750
2 years ago
Andy Wilkinson 45068c777f Document default value for management.otlp.tracing.compression
See gh-34508
2 years ago
Stephane Nicoll 366f7a85c9 Merge branch '3.0.x'
Closes gh-35069
2 years ago