Commit Graph

40582 Commits

Author SHA1 Message Date
Sébastien Deleuze e7f91bab78 Refine BackgroundPreinitializer code reachability
GraalVM code reachability algorithm is not able to evaluate at build
time that ENABLED static field is always false in a native image,
shipping unreachable code.

Before this commit, building a native image with -H:+PrintAnalysisCallTree
shows that the following methods are included:
- BackgroundPreinitializer$1.<init>(BackgroundPreinitializer):void
- BackgroundPreinitializer$1.run():void
- BackgroundPreinitializer$1.runSafely(Runnable):void
- BackgroundPreinitializer$CharsetInitializer.run():void
- BackgroundPreinitializer$ConversionServiceInitializer.run():void
- BackgroundPreinitializer$JacksonInitializer.run():void
- BackgroundPreinitializer$MessageConverterInitializer.run():void
- BackgroundPreinitializer$ValidationInitializer.run():void
- BackgroundPreinitializer.<clinit>():void
- BackgroundPreinitializer.getOrder():int
- BackgroundPreinitializer.onApplicationEvent(ApplicationEvent):void
- BackgroundPreinitializer.onApplicationEvent(SpringApplicationEvent):void
- BackgroundPreinitializer.performPreinitialization():void

After this commit, only those are included:
- BackgroundPreinitializer.<clinit>():void
- BackgroundPreinitializer.getOrder():int
- BackgroundPreinitializer.onApplicationEvent(ApplicationEvent):void
- BackgroundPreinitializer.onApplicationEvent(SpringApplicationEvent):void

See gh-33240
2022-11-18 10:52:42 +00:00
Moritz Halbritter 517ec654ed Document @NestedConstructorBinding in all cases
This covers Kotlin data classes, constructor injection and records.

Closes gh-33235
2022-11-18 11:43:12 +01:00
Andy Wilkinson 931cc8a508 Merge branch '2.7.x'
Closes gh-33250
2022-11-18 10:39:52 +00:00
Andy Wilkinson 0a3c403948 Merge branch '2.6.x' into 2.7.x
Closes gh-33249
2022-11-18 10:39:18 +00:00
Andy Wilkinson 7c65c3e260 Handle invalid names gracefully in properties migrator
Closes gh-32729
2022-11-18 10:38:53 +00:00
Stephane Nicoll be89f03acb Merge branch '2.7.x' 2022-11-18 11:34:12 +01:00
Stephane Nicoll 36d1b05475 Merge branch '2.6.x' into 2.7.x 2022-11-18 11:33:27 +01:00
Stephane Nicoll 92454ca4e1 Upgrade to Spring Data 2021.2.6
Closes gh-33132
2022-11-18 11:30:07 +01:00
Stephane Nicoll 97e6626b34 Upgrade to Spring Data 2021.1.10
Closes gh-33125
2022-11-18 11:29:01 +01:00
Moritz Halbritter 5a88468c09 Refine example to show @NestedConfigurationProperty usage
Closes gh-33239
2022-11-18 10:25:30 +01:00
Moritz Halbritter 5c10ae2f0b Revert "Remove unneeded NestedConfigurationProperty"
This reverts commit 8048e2d6c2.
2022-11-18 10:23:09 +01:00
Moritz Halbritter 8048e2d6c2 Remove unneeded NestedConfigurationProperty
Closes gh-33239
2022-11-18 09:45:55 +01:00
Moritz Halbritter b7de4020cb Mention @RegisterReflectionForBinding in the docs
Closes gh-32903
2022-11-18 09:39:41 +01:00
Phillip Webb fb5cdbd11c Create ApplicationTags in common WavefrontAutoConfiguration
Relocate `ApplicationTags` `@Bean` method from
`WavefrontTracingAutoConfiguration` to `WavefrontAutoConfiguration`
since it is now shared between tracing and metrics.

The `application-name`, `service-name`, `cluster-name` and `shard-name`
have also been relocated from `management.wavefront.tracing` to
`management.wavefront`.

Fixes gh-33244
2022-11-17 20:16:38 -08:00
Phillip Webb fafbefa35c Ensure @ContextHierarchy is never used with UseMainMethod
Fixes gh-33078
2022-11-17 10:16:24 -08:00
Andy Wilkinson b9e57c73b5 Consider Kotlin when checking if parameter names are available
See gh-33182
2022-11-17 12:05:16 +00:00
Andy Wilkinson cd455a9f6f Restore previous serialization formatting in Actuator responses
Fixes gh-33236
2022-11-17 11:31:27 +00:00
Stephane Nicoll cb1ee205ea Exclude SharedMetadataReaderFactoryContextInitializer from AOT contexts
SharedMetadataReaderFactoryContextInitializer exposes an additional
bean post processor that is only relevant when parsing the bean
factory, auto-configurations in particular. Given that this does not
happen in an AOT-optimized context, this commit excludes the bean
and makes sure the initializer does not do anything at runtime.

Closes gh-33216
2022-11-17 11:30:22 +01:00
Stephane Nicoll 55ba5a5074 Upgrade to Elasticsearch Client 8.5.1
Closes gh-33225
2022-11-17 11:29:51 +01:00
Phillip Webb 7525c0f557 Merge pull request #32844 from oppegard
* pr/32844:
  Polish 'Align Wavefront application tags support with Spring Boot 2.x'
  Align Wavefront application tags support with Spring Boot 2.x
  Switch to use BeanUtils.getPropertyDescriptors

Closes gh-32844
2022-11-16 17:38:10 -08:00
Phillip Webb a0f39d66fe Polish 'Align Wavefront application tags support with Spring Boot 2.x'
See gh-32844
2022-11-16 17:10:19 -08:00
Glenn Oppegard 42bb4c0615 Align Wavefront application tags support with Spring Boot 2.x
Update `application-name` and `service-name` `management.wavefront`
properties to align with Spring Boot 2.x support. The properties now
use the wavefront terminology where `application` refers to an a
collection of (micro)`services`.

This commit also adds `cluster-name` and `shard-name` properties that
can be used to add additional items to the `ApplicationTags`.

See gh-32844
2022-11-16 16:49:51 -08:00
Phillip Webb a50d1f0bd6 Switch to use BeanUtils.getPropertyDescriptors
Update `BindableRuntimeHintsRegistrar` to use
`BeanUtils.getPropertyDescriptors` rather than `BeanInfoFactory`.

Closes gh-33232
2022-11-16 16:28:08 -08:00
Phillip Webb 2e8d766889 Fix BindableRuntimeHintsRegistrarTests inner class to be static 2022-11-16 13:54:34 -08:00
Phillip Webb d6151858f2 Merge pull request #32851 from tumit
* pr/32851:
  Polish 'Add test for BindableRuntimeHintsRegistrar'
  Add tests for BindableRuntimeHintsRegistrar

Closes gh-32851
2022-11-16 13:41:37 -08:00
Phillip Webb 13a4902018 Polish 'Add test for BindableRuntimeHintsRegistrar'
See gh-32851
2022-11-16 13:37:48 -08:00
tumit 7e424bdf0c Add tests for BindableRuntimeHintsRegistrar
See gh-32851
2022-11-16 13:37:31 -08:00
Andy Wilkinson 421f2fac67 Fail fast when constructor bound and not compiled with -parameters
Closes gh-33182
2022-11-16 21:00:55 +00:00
Phillip Webb e2dc35954e Merge branch '2.7.x'
Closes gh-33230
2022-11-16 12:06:20 -08:00
Phillip Webb e255bba018 Merge branch '2.6.x' into 2.7.x
Closes gh-33229
2022-11-16 12:06:10 -08:00
Phillip Webb c1fe43a4ac Merge pull request #33220 from sdeleuze
* pr/33220:
  Polish 'Refine BackgroundPreinitializer Jackson initialization'
  Refine BackgroundPreinitializer Jackson initialization

Closes gh-33220
2022-11-16 12:05:58 -08:00
Phillip Webb 6cc6a15edf Polish 'Refine BackgroundPreinitializer Jackson initialization'
See gh-33220
2022-11-16 12:01:05 -08:00
Sébastien Deleuze bdac416a62 Refine BackgroundPreinitializer Jackson initialization
AllEncompassingFormHttpMessageConverter already initializes
Jackson ObjectMapper. This commit updates BackgroundPreinitializer
in order to not run JacksonInitializer when
MessageConverterInitializer already takes care of initializing
ObjectMapper.

See gh-33220
2022-11-16 12:00:47 -08:00
Andy Wilkinson f39b297677 Merge branch '2.7.x'
Closes gh-33227
2022-11-16 18:09:35 +00:00
Andy Wilkinson 04353e4961 Merge branch '2.6.x' into 2.7.x
Closes gh-33226
2022-11-16 16:41:02 +00:00
Andy Wilkinson a650361f1d Merge branch 'gh-17299' into 2.6.x
Closes gh-17299
2022-11-16 16:12:13 +00:00
Andy Wilkinson 4bb13bcdfd Fix package tangles in spring-boot-autoconfigure
See gh-17299
2022-11-16 16:12:00 +00:00
Andy Wilkinson 1494deb4a0 Check for package tangles at build time
See gh-17299
2022-11-16 16:11:59 +00:00
Brian Clozel c1c818d43c Polish
See gh-33208
2022-11-16 16:34:49 +01:00
Stephane Nicoll 4d54071d31 Merge branch '2.7.x' 2022-11-16 16:20:23 +01:00
Stephane Nicoll 59d3cfddb0 Merge branch '2.6.x' into 2.7.x 2022-11-16 16:20:13 +01:00
Stephane Nicoll 3f67037acf Start building against Spring AMQP 2.4.8 snapshots
See gh-33223
2022-11-16 16:15:34 +01:00
Stephane Nicoll 8bcde6d57b Start building against Spring AMQP 2.4.8 snapshots
See gh-33222
2022-11-16 16:10:04 +01:00
Brian Clozel 200458136c Contribute GraphQL resources during AOT phase
This commit ensures that the default locations for GraphQL schema files
and the GraphiQL UI HTML page are included in the native image by
registering resource hints during the AOT phase.

Fixes gh-33208
2022-11-16 15:56:15 +01:00
Stephane Nicoll 934b601c88 Upgrade to Spring Retry 2.0.0
Closes gh-33149
2022-11-16 13:46:54 +01:00
Stephane Nicoll 2df3598247 Merge branch '2.7.x' 2022-11-16 13:06:37 +01:00
Stephane Nicoll bee259e3ce Upgrade to Micrometer 1.10.1
Closes gh-33218
2022-11-16 13:06:27 +01:00
Stephane Nicoll fdab1de2d6 Merge branch '2.6.x' into 2.7.x 2022-11-16 13:05:42 +01:00
Stephane Nicoll 8983a6b013 Upgrade to Micrometer 1.9.6
Closes gh-33129
2022-11-16 13:05:11 +01:00
Stephane Nicoll 4067dec811 Upgrade to Micrometer 1.8.12
Closes gh-33122
2022-11-16 13:04:26 +01:00