Commit Graph

18675 Commits (39cf17ed815b1ca6cdc9278744900ca059a5ab39)

Author SHA1 Message Date
Scott Frederick f9c341c75a Revert "Generate the AutoConfiguration.imports file from annotations"
This reverts commit da4de7d67d.
2 years ago
Scott Frederick d62d7ca75d Revert "Generate ManagementContextConfiguration.imports file from annotations"
This reverts commit 6b3b0dd3a6.
2 years ago
Scott Frederick 1f53eb7df9 Revert "Sort the contents of generated imports files"
This reverts commit 95e62b7ff8.
2 years ago
Scott Frederick 910e9c9fcc Revert "Fix windows build"
This reverts commit 9fe24fe692.
2 years ago
Brian Clozel 56dcae8a3c Merge branch '2.7.x'
Closes gh-32471
2 years ago
Brian Clozel 8f9323d66c Document "classpath:*" location for GraphQL Schemas
This commit mentions the `"classpath*:graphql/**` schema location in
case the application needs to find schemas across multiple classpath
roots, for example across multiple modules.

Closes gh-31772
2 years ago
Andy Wilkinson b084019d34 Reverse the order of tracing and metrics handlers
Closes gh-32463

Co-authored-by: Jonatan Ivanov <jonatan.ivanov@gmail.com>
2 years ago
Andy Wilkinson 78a64d7f61 Allow DefaultMeterObservationHandler to be replaced by user's bean
Closes gh-32462

Co-authored-by: Jonatan Ivanov <jonatan.ivanov@gmail.com>
2 years ago
Andy Wilkinson 4a80b36160 Configure native image classpath outside of task realisation
Closes gh-32465
2 years ago
Andy Wilkinson 2977373505 Polish "Add property to configure Spring Session Redis repository type"
See gh-32205
2 years ago
Vedran Pavic 3093380e35 Add property to configure Spring Session Redis repository type
With Spring Session moving to RedisSessionRepository as the preferred
session repository, Spring Boot auto-configuration should make it
possible to easily switch back to the previous default
(RedisIndexedSessionRepository).

This commit introduces spring.session.redis.repository configuration
property that allows selecting the desired Redis-backed session
repository implementation.

See gh-32205
2 years ago
Andy Wilkinson 6175c4210d Fix skipping of processAot when there is no main source
See gh-32424
2 years ago
Andy Wilkinson 67cc99111c Upgrade to Dependency Management Plugin 1.1.0-RC1
Closes gh-32460
2 years ago
Andy Wilkinson cb614cfee9 Merge branch '2.7.x' 2 years ago
Andy Wilkinson 3620959dca Upgrade to Dependency Management Plugin 1.0.14.RELEASE
Closes gh-32459
2 years ago
Andy Wilkinson 9d30a0a5b6 Upgrade to Dependency Management Plugin 1.0.14.RELEASE
Closes gh-32458
2 years ago
Stephane Nicoll 5752eb9a40 Upgrade to Maven Jar Plugin 3.3.0
Closes gh-32456
2 years ago
Stephane Nicoll 7c8ec4d228 Upgrade to Byte Buddy 1.12.17
Closes gh-32455
2 years ago
Stephane Nicoll 4e5e42c2e1 Upgrade to Spring Integration 6.0.0-M5
Closes gh-32096
2 years ago
Stephane Nicoll 89b547565e Upgrade to Spring Session 2022.0.0-M3
Closes gh-32427
2 years ago
Stephane Nicoll 8bca178b83 Upgrade to Byte Buddy 1.12.17
Closes gh-32454
2 years ago
Stephane Nicoll d5debb1d3d Upgrade to Spring Integration 5.5.15
Closes gh-32453
2 years ago
Stephane Nicoll b3db0768c0 Upgrade to Spring GraphQL 1.0.2
Closes gh-32426
2 years ago
Stephane Nicoll 4e18da99a3 Upgrade to Spring Integration 5.5.15
Closes gh-32452
2 years ago
Phillip Webb 374176a680 Upgrade to MariaDB 3.0.8
Closes gh-32451
2 years ago
Phillip Webb d849cdf9cb Upgrade to Liquibase 4.16.1
Closes gh-32450
2 years ago
Phillip Webb 0b49fed06c Upgrade to Kafka 3.2.3
Closes gh-32449
2 years ago
Phillip Webb 994a4bdef3 Upgrade to JUnit Jupiter 5.9.1
Closes gh-32448
2 years ago
Phillip Webb 855c2ee617 Upgrade to Jetty 11.0.12
Closes gh-32447
2 years ago
Phillip Webb d8be9975fc Upgrade to Flyway 9.3.1
Closes gh-32446
2 years ago
Phillip Webb 445dff0483 Upgrade to MariaDB 3.0.8
Closes gh-32445
2 years ago
Phillip Webb 0ff789415e Upgrade to Jetty 9.4.49.v20220914
Closes gh-32444
2 years ago
Phillip Webb f9b532d5aa Upgrade to Groovy 3.0.13
Closes gh-32443
2 years ago
Phillip Webb c7254cfe25 Upgrade to Jetty 9.4.49.v20220914
Closes gh-32441
2 years ago
Phillip Webb 634799f887 Upgrade to Groovy 3.0.13
Closes gh-32440
2 years ago
Andy Wilkinson fa81e8ca79 Skip processAot and processTestAot if there is no main or test code
Closes gh-32424
2 years ago
Andy Wilkinson 64f4da80cb Align with breaking changes in latest Batch snapshots
Batch is now auto-configured to use the context's
PlatformTransactionManager and DataSource or `@BatchDataSource`.
When this does not meet the user's needs, they can use
`@EnableBatchProcessing` or sub-class `DefaultBatchConfiguration` to
take complete control with the auto-configuration backing off.

Closes gh-32330
2 years ago
Stephane Nicoll 375a570717 Upgrade to Spring Kafka 3.0.0-M6
Closes gh-31925
2 years ago
Stephane Nicoll 35916a9962 Upgrade to Spring GraphQL 1.1.0-M1
Closes gh-32294
2 years ago
Stephane Nicoll 9936448269 Upgrade to GraphQL Java 19.2
Closes gh-32430
2 years ago
Andy Wilkinson e8aa5680d6 Support file-based reachability metadata repositories
See gh-32408
2 years ago
Andy Wilkinson 8323f24ccc Make classes generated by AOT test processing available to nativeTest
Closes gh-32428
2 years ago
Stephane Nicoll 0f325f98b5 Disable ContextCustomizer implementations at runtime if necessary
This commit disables ContextCustomizer implementations that tune a
test configuration context at runtime. Previously, these ran again and
required additional hints to work properly.

Rather than contributing those hints, the customizer is skipped as its
impact is irrelevant in an AOT-optimized context: the context is fully
prepared and the updates on the MergedContextConfiguration are not taken
into account.

Closes gh-32422
2 years ago
Stephane Nicoll 6f6a4d9990 Start building against Spring Session 2022.0.0-M3 snapshots
See gh-32427
2 years ago
Stephane Nicoll 4fd6144117 Revert "Upgrade to Spring Kafka 3.0.0-M6"
This reverts commit 876511f212.
2 years ago
Stephane Nicoll 4e82a69a0b Start building against Spring GraphQL 1.0.2 snapshots
See gh-32426
2 years ago
Stephane Nicoll 876511f212 Upgrade to Spring Kafka 3.0.0-M6
Closes gh-31925
2 years ago
Stephane Nicoll 56bdb67ecf Upgrade to Spring AMQP 3.0.0-M4
Closes gh-31861
2 years ago
Stephane Nicoll 3d85931fc7 Upgrade to Spring Security 6.0.0-M7
Closes gh-32255
2 years ago
Stephane Nicoll e616fb5d8b Upgrade to Spring Kafka 2.8.9
Closes gh-32277
2 years ago
Stephane Nicoll cddfa4b58c Upgrade to Spring AMQP 2.4.7
Closes gh-32276
2 years ago
Stephane Nicoll 6c37838f31 Upgrade to Spring Kafka 2.8.9
Closes gh-32270
2 years ago
Stephane Nicoll 033b6b5dbe Upgrade to Spring AMQP 2.4.7
Closes gh-32269
2 years ago
Stephane Nicoll 59b06050b4 Upgrade to Spring Data 2022.0.0-M6
Closes gh-32254
2 years ago
Stephane Nicoll 85d73a1f62 Upgrade to Spring Data 2021.2.3
Closes gh-32275
2 years ago
Stephane Nicoll d72e0b39fc Upgrade to Spring Data 2021.1.7
Closes gh-32268
2 years ago
Stephane Nicoll 436366eedf Upgrade to Spring LDAP 3.0.0-M4
Closes gh-32105
2 years ago
dreis2211 bac7d62476 Fix Spring Batch deprecations
See gh-32419
2 years ago
Stephane Nicoll 190d4cbc2f Relax ImportsContextCustomizer to only require a class name
Closes gh-32421
2 years ago
Scott Frederick 1ed4d89466 Copy native reachability metadata to jar file in Gradle plugin
When the Spring Boot Gradle plugin builds a fat jar and the Native
Build Tools Gradle plugin is applied to the build, any configuration
files from the GraalVM reachability metadata repository that match
project dependencies are copied to a `META-INF/native-image`
directory in the fat jar.

Closes gh-32408
2 years ago
Andy Wilkinson 2b3ef96156 Merge branch '2.7.x'
Closes gh-32407
2 years ago
Andy Wilkinson a800f7d77c Merge branch '2.6.x' into 2.7.x
Closes gh-32406
2 years ago
Andy Wilkinson 61e11cd361 Ensure that TCCL is clean when DataSource is accessed
Previously, when using Tomcat, its web app class loader was the thread
context class loader when H2ConsoleAutoConfiguration triggered
initialization of Hikari's pool. This was the case because it's done
in the bean method of a ServletRegistrationBean. Such Servlet-related
beans are intentionally created with Tomcat's web app classloader as
the TCCL. This arrangement results in the pool's threads using
Tomcat's web app class loader as their TCCL which is not desirable.
One consequence of this was that Tomcat could log a warning at
shutdown about the thread being left running when it will, in fact,
be stopped as part of the context being closed.

This commit updates H2ConsoleAutoConfiguration to set the TCCL to its
own ClassLoader while the DataSource information is being logged.

Closes gh-32382
2 years ago
Andy Wilkinson 5cb68eab1e Remove HotSpot specifics from HeapDumper strategy interface
Closes gh-27533
2 years ago
Andy Wilkinson f731279fef Merge branch '2.7.x'
Closes gh-32403
2 years ago
Andy Wilkinson 7827e8166e Merge branch '2.6.x' into 2.7.x
Closes gh-32402
2 years ago
Andy Wilkinson ab26050fe7 Document support for Java 19
Closes gh-32259
2 years ago
Stephane Nicoll b293541906 Upgrade to Spring HATEOAS 2.0.0-M6
Closes gh-31855
2 years ago
Stephane Nicoll 756eaea766 Upgrade to Spring HATEOAS 1.5.2
Closes gh-32378
2 years ago
Stephane Nicoll 998396dd8a Upgrade to Spring HATEOAS 1.4.5
Closes gh-32400
2 years ago
Madhura Bhave b44a7e242c Support Mongo's Stable API in MongoHealthIndicator
Closes gh-30849
2 years ago
Phillip Webb 7f5785182d Switch @SpringBootTest to UseMainMethod.NEVER by default
See gh-22405
2 years ago
Phillip Webb 48f3cd75d4 Refine SpringBootTest.useMainMethod support
Refine `SpringBootContextLoader` so that calls to the main method do
not exit early and the hook is only used when necessary.

See gh-22405
2 years ago
Stephane Nicoll f1b60eef55 Upgrade to Spring Retry 2.0.0-M1
Closes gh-32293
2 years ago
Andy Wilkinson 2b503ee334 Add AOT-generated classes as a dependency
Previously, the AOT-generated classes were added directly to the
compile classpath of the AOT compilation task. This didn't work
perfectly in IntelliJ IDEA, leaving the generated classes in the
runtime scope and causing compilation problems where the
AOT-generated source tried to reference those classes.

This commit updates the plugin to add the AOT-generated classes as
a dependency to the AOT source set's implementation configuration.
This makes the classes available during compilation by the source
set's Java compilation task while also makeing IntelliJ IDEA aware
of their presence on the compile classpath.

Closes gh-32395
2 years ago
Andy Wilkinson 0476b5da5d Upgrade to Selenium HtmlUnit 3.64.0 and Selenium 4.4.0
Closes gh-32372
Closes gh-32373
2 years ago
Andy Wilkinson 52522b87f0 Merge branch '2.6.x' into 2.7.x
Closes gh-32393
2 years ago
Andy Wilkinson 77f428498f Compile against SnakeYAML 1.32 and test against older versions
Closes gh-32392
2 years ago
Stephane Nicoll 3803cda746 Upgrade to Spring Framework 6.0.0-M6
Closes gh-31834
2 years ago
Stephane Nicoll 4aabe7caf5 Upgrade to Spring Framework 5.3.23
Closes gh-32274
2 years ago
Stephane Nicoll 78fb738117 Upgrade to Spring Framework 5.3.23
Closes gh-32267
2 years ago
Stephane Nicoll 9391f329fb Upgrade to Versions Maven Plugin 2.12.0
Closes gh-32391
2 years ago
Stephane Nicoll 8f67cfd709 Upgrade to Undertow 2.2.19.Final
Closes gh-32390
2 years ago
Stephane Nicoll 74c1f5bede Upgrade to UnboundID LDAPSDK 6.0.6
Closes gh-32389
2 years ago
Stephane Nicoll c10a8cb195 Upgrade to SQLite JDBC 3.39.3.0
Closes gh-32387
2 years ago
Stephane Nicoll 59448ce5d2 Upgrade to SnakeYAML 1.32
Closes gh-32386
2 years ago
Stephane Nicoll b352ebfc5a Upgrade to RSocket 1.1.3
Closes gh-32385
2 years ago
Stephane Nicoll 16bb543c16 Upgrade to Maven Shade Plugin 3.4.0
Closes gh-32384
2 years ago
Phillip Webb 4d037c3003 Update SpringBootContextLoader to support AOT
Update `SpringBootContextLoader` so that it now implements the
`AotContextLoader` interface. The `ContextLoaderHook` will abandon
at `contextLoaded` if the test class is being AOT processed.

This commit also introduces a new `AotApplicationContextInitializer`
which allows us to plug-in an alternative AOT application context
listener when the `SpringApplication` is running in test mode.

Closes gh-31965
2 years ago
Phillip Webb d1e7c9bd70 Introduce 'nativeTest' maven profile
Update `spring-boot-start-parent` with a new `nativeTest` profile. When
active, this profile will trigger AOT processing of test code and call
the native build tools 'test' goal.

Closes gh-32383
2 years ago
Phillip Webb 41e0bbf4bb Add SpringBootTest.useMainMethod support
Add a new `useMainMethod` attribute to `SpringBootTest` which can be
used to determine how the test should run. The three available options
are:

	- `ALWAYS`
	- `NEVER`
	- `WHEN_AVAILABLE`

The default is `WHEN_AVAILABLE` which will attempt to launch the test
using the `main` method if there is one.

The `SpringBootContextLoader` has been updated to use the new
`SpringApplicationHook` interface when the main method is being used.

Closes gh-22405
2 years ago
Phillip Webb fadbb4b763 Polish SpringBootContextLoader 2 years ago
Phillip Webb d3957dfa3e Provide a public API for SpringApplication hooks
Create a new public SpringApplication Hook API based on the existing
`SpringApplicationRunListener` interface.

The previous package-private `SpringApplicationHooks` class has been
replaced with a public `SpringApplicationHook` interface which acts as
a factory that can create additional `SpringApplicationRunListener`
instances to hook in.

The boolean result from the previous `preRefresh` method has been
replaced with an `AbandonedRunException` which can be thrown from
the `SpringApplicationRunListener`.

Closes gh-32301
2 years ago
Phillip Webb 88913b11ce Allow additional listeners registration in early events
Update `EventPublishingRunListener` so that event listeners may add
additional listeners to the `SpringApplication` during early events.

Prior to this commit, the listeners were collected only once which
meant that if a listener for an `ApplicationStartingEvent` called
`application.addListener(...)`, it would be ignored.

Closes gh-32300
2 years ago
Phillip Webb 6955ed9dcf Make EventPublishingRunListener package private
Closes gh-32299
2 years ago
Phillip Webb 20b91c5ae2 Include 'classesDirectory' in ProcessTestAotMojo classpath
Update `ProcessTestAotMojo` so that the classesDirectory and
the testClassesDirectory are on the classpath when compiling
code.

See gh-32191
2 years ago
Phillip Webb db89ee6904 Deprecate spring.mvc.ignore-default-model-on-redirect property
Closes gh-32381
2 years ago
Stephane Nicoll 9620fb5317 Start building against Spring HATEOAS 1.5.2 snapshots
See gh-32378
2 years ago
Stephane Nicoll 1839c8385e Upgrade to RSocket 1.1.3
Closes gh-32380
2 years ago
Stephane Nicoll 9b122924c8 Upgrade to RSocket 1.1.3
Closes gh-32379
2 years ago
Stephane Nicoll 1fa6985311 Upgrade to REST Assured 5.2.0
Closes gh-32371
2 years ago
Stephane Nicoll 447804fdc4 Upgrade to Rabbit Stream Client 0.7.0
Closes gh-32370
2 years ago
Stephane Nicoll 6e59f3fe18 Upgrade to Rabbit AMQP Client 5.16.0
Closes gh-32369
2 years ago
Stephane Nicoll 52e0293bd0 Upgrade to Postgresql 42.5.0
Closes gh-32368
2 years ago
Stephane Nicoll 6a4fef33bb Upgrade to Oracle Database 21.7.0.0
Closes gh-32367
2 years ago
Stephane Nicoll 777fbce1fa Upgrade to OpenTelemetry 1.18.0
Closes gh-32366
2 years ago
Stephane Nicoll 297e9019ac Upgrade to Netty 4.1.82.Final
Closes gh-32365
2 years ago
Stephane Nicoll aa47a9bd83 Upgrade to MySQL 8.0.30
Closes gh-32364
2 years ago
Stephane Nicoll 3fa038a393 Upgrade to MSSQL JDBC 11.2.1.jre17
Closes gh-32363
2 years ago
Stephane Nicoll bcf452918b Upgrade to MongoDB 4.7.1
Closes gh-32362
2 years ago
Stephane Nicoll 81a75f9e5d Upgrade to Mockito 4.8.0
Closes gh-32361
2 years ago
Stephane Nicoll 27d03aac3c Upgrade to Maven Resources Plugin 3.3.0
Closes gh-32360
2 years ago
Stephane Nicoll f624026d4e Upgrade to Maven Javadoc Plugin 3.4.1
Closes gh-32359
2 years ago
Stephane Nicoll 57e4b4447c Upgrade to Maven Install Plugin 3.0.1
Closes gh-32358
2 years ago
Stephane Nicoll a1f4f519fc Upgrade to Maven Help Plugin 3.3.0
Closes gh-32357
2 years ago
Stephane Nicoll 1b06966130 Upgrade to Maven Assembly Plugin 3.4.2
Closes gh-32356
2 years ago
Stephane Nicoll 0cedc5dbba Upgrade to MariaDB 3.0.7
Closes gh-32355
2 years ago
Stephane Nicoll bcb5f048d2 Upgrade to Liquibase 4.16.0
Closes gh-32354
2 years ago
Stephane Nicoll 4c7d6799f8 Upgrade to Kafka 3.2.2
Closes gh-32352
2 years ago
Stephane Nicoll 4f6c3ab2b0 Upgrade to JUnit Jupiter 5.9.0
Closes gh-32351
2 years ago
Stephane Nicoll b4a33e52c1 Upgrade to jOOQ 3.17.4
Closes gh-32350
2 years ago
Stephane Nicoll b6b743006e Upgrade to Jersey 3.0.8
Closes gh-32349
2 years ago
Stephane Nicoll b70ebe04ff Upgrade to Janino 3.1.8
Closes gh-32348
2 years ago
Stephane Nicoll 36e3588416 Upgrade to Jackson Bom 2.13.4
Closes gh-32347
2 years ago
Stephane Nicoll 1849cddcd3 Upgrade to HtmlUnit 2.64.0
Closes gh-32346
2 years ago
Stephane Nicoll 1e3bcc5afd Upgrade to HSQLDB 2.7.0
Closes gh-32345
2 years ago
Stephane Nicoll 5b8aa1e8e3 Upgrade to Hibernate Validator 7.0.5.Final
Closes gh-32344
2 years ago
Stephane Nicoll e3ea832bd8 Upgrade to Hibernate 6.1.3.Final
Closes gh-32343
2 years ago
Stephane Nicoll 52ee9932e0 Upgrade to Hazelcast 5.1.3
Closes gh-32342
2 years ago
Stephane Nicoll 52bd273dd0 Upgrade to Gson 2.9.1
Closes gh-32341
2 years ago
Stephane Nicoll a16da73843 Upgrade to Groovy 4.0.5
Closes gh-32340
2 years ago
Stephane Nicoll 29c9837131 Upgrade to Flyway 9.3.0
Closes gh-32339
2 years ago
Stephane Nicoll 947a751d5a Upgrade to Elasticsearch Client 8.3.3
Closes gh-32338
2 years ago
Stephane Nicoll 464237fc21 Upgrade to Ehcache3 3.10.1
Closes gh-32337
2 years ago
Stephane Nicoll e3972b66af Upgrade to Dropwizard Metrics 4.2.12
Closes gh-32336
2 years ago
Stephane Nicoll ebf51813aa Upgrade to Couchbase Client 3.3.4
Closes gh-32335
2 years ago
Stephane Nicoll ce018d5b6e Upgrade to Byte Buddy 1.12.16
Closes gh-32334
2 years ago
Stephane Nicoll 024ee55f6d Upgrade to Artemis 2.25.0
Closes gh-32333
2 years ago
Stephane Nicoll bafee1bb7c Upgrade to Micrometer 1.10.0-M6
Closes gh-32238
2 years ago
Stephane Nicoll 6fb70d143d Map R2DBC Pool 'minIdle' property
Closes gh-32332
2 years ago
Andy Wilkinson 6d2a1d3f3b Adapt to breaking changes in Batch's transaction management
See gh-32237
2 years ago
Stephane Nicoll cdac50a1c9 Upgrade to UnboundID LDAPSDK 6.0.6
Closes gh-32329
2 years ago
Stephane Nicoll d4a88041dc Upgrade to R2DBC Bom Borca-SR2
Closes gh-32328
2 years ago
Stephane Nicoll 24ab4e88cd Upgrade to Netty 4.1.82.Final
Closes gh-32327
2 years ago
Stephane Nicoll 8621e63aef Upgrade to Kafka 3.1.2
Closes gh-32326
2 years ago
Stephane Nicoll 7e8c560e9b Upgrade to Johnzon 1.2.19
Closes gh-32325
2 years ago
Stephane Nicoll d525d36fb9 Upgrade to Janino 3.1.8
Closes gh-32324
2 years ago
Stephane Nicoll 7cff955030 Upgrade to Jackson Bom 2.13.4
Closes gh-32323
2 years ago
Stephane Nicoll 051331beb9 Upgrade to Infinispan 13.0.11.Final
Closes gh-32322
2 years ago
Stephane Nicoll c5b2bacfd3 Upgrade to Hibernate Validator 6.2.5.Final
Closes gh-32321
2 years ago