Commit Graph

18993 Commits (75b938d0f60e36d04f670cf24ab284582a9f3b51)

Author SHA1 Message Date
Phillip Webb 43a44006c9 Update getting started documentation to use @SpringBootApplication
Closes gh-32780
2 years ago
Phillip Webb 8dadf86f93 Merge branch '2.7.x'
Closes gh-32778
2 years ago
Phillip Webb fcaac2b343 Merge branch '2.6.x' into 2.7.x
Closes gh-32777
2 years ago
Phillip Webb 2c7114fa17 Polish 'Use exclamation character for the document separator prefix'
See gh-32521
2 years ago
Guirong Hu 33e379c4a2 Use exclamation character for the document separator prefix
See gh-32521
2 years ago
Phillip Webb 07dd388b58 Merge branch '2.7.x'
Closes gh-32776
2 years ago
Phillip Webb 8dec296dfd Merge branch '2.6.x' into 2.7.x
Closes gh-32775
2 years ago
Phillip Webb de111dba5c Polish 'Add DataSize serializer for configprops endpoint'
See gh-32645
2 years ago
Guirong Hu 3b25132e38 Add DataSize serializer for configprops endpoint
See gh-32645
2 years ago
Phillip Webb 02cd910f5a Merge branch '2.7.x'
Closes gh-32774
2 years ago
Phillip Webb fbd416adc6 Merge branch '2.6.x' into 2.7.x
Closes gh-32773
2 years ago
Phillip Webb b02c702ad1 Polish 'Use more specific bean method return types in KafkaAutoConfiguration'
See gh-32770
2 years ago
yuanhao18 c498ad0320 Use more specific bean method return types in KafkaAutoConfiguration
Update `KafkaAutoConfiguration` so that more specific bean types are
returned.

See gh-32770
2 years ago
Scott Frederick 76c7263eff Provide default groupId for AOT processing
Framework requires the `groupId` passed to the AOT processing
to be non-empty, so a default should be used if the build
system does not provide a value.

See gh-32696
2 years ago
Andy Wilkinson 9d07a09ed4 Upgrade to Spring Integration 6.0.0-RC1
Closes gh-32619
2 years ago
Andy Wilkinson 60112e7d90 Upgrade to Spring WS 4.0.0-RC1
Closes gh-32621
2 years ago
Andy Wilkinson d20f582493 Upgrade to Spring GraphQL 1.0.0-RC1
Closes gh-32605
2 years ago
Andy Wilkinson 4a76fbf93c Support logback.xml in a native image
Closes gh-32756
2 years ago
Phillip Webb cb48674536 Switch Java versions used in documentation
See gh-32746
2 years ago
Phillip Webb 7d03a201c0 Switch Java version displayed in documentation
Closes gh-32746
2 years ago
Phillip Webb 45ce096b6b Replace our TestCompiler with Spring Framework's version
Replace the last use of our `TestCompiler` with Spring Framework's
version.

See gh-31266
2 years ago
Andy Wilkinson 7bae02be2d Adapt to breaking changes to AotProcessor settings
See gh-32696
2 years ago
Stephane Nicoll d53c2b25d0 Upgrade to Spring Retry 2.0.0-RC2
Closes gh-32600
2 years ago
Stephane Nicoll 4b778ff4c1 Polish Maven documentation to mention native profile 2 years ago
Stephane Nicoll f0d1eb7891 Configure the Native buildpack when enabling the native Maven profile
This commit makes sure that the Native Cloud Native Buildpacks is
configured when the native Maven profile is enabled. Doing so lets
users generate a native image with a single command-line by default:

$ ./mvnw -Pnative spring-boot:build-image

Closes gh-32764
2 years ago
Moritz Halbritter 8cd9f49fad Add runtime hints for ConfigDataProperties
Closes gh-32608
2 years ago
Andy Wilkinson 2dacddb4d7 Make bootBuildImage produce native image when NBT plugin is applied
Closes gh-32768
2 years ago
Andy Wilkinson 2c756ea874 Use collectReachabilityMetadata task to add metadata to bootJar
Closes gh-32737
2 years ago
Moritz Halbritter b986a9b12e Add Flyway native-image support
The ResourceProviderCustomizer, which is used by FlywayAutoConfiguration
gets replaced with NativeImageResourceProviderCustomizer when running
in AOT mode. The NativeImageResourceProvider does the heavy lifting when
running in a native image: it uses PathMatchingResourcePatternResolver
to find the migration files.

Closes gh-31999
2 years ago
Andy Wilkinson 3acdf590b7 Upgrade to Dependency Management Plugin 1.1.0
Closes gh-32760
2 years ago
Andy Wilkinson 93436f29dd Correct assertion in test for member with private constructor
See gh-32639
2 years ago
Phillip Webb a34b1d3c6e Don't detect private constructors on member classes for binding
Refine constructor binding detection logic so that `private`
constructors on member classes are no longer automatically picked for
constructor binding. This provides users a way of signalling that
they wish to use the constructor directly.

Closes gh-32639
2 years ago
Phillip Webb 754f39e6ef Polish 2 years ago
Phillip Webb e3df6c5b6f Move @ConstructorBinding annotation and support add default support
Relocate `@ConstructorBinding` from the `boot.context.properties`
package to `boot.context.properties.bind` and update the
`DefaultBindConstructorProvider` to support it.

Closes gh-32660
2 years ago
Moritz Halbritter db248b80bb Add info log message if AOT mode is enabled
Closes gh-32396
2 years ago
Moritz Halbritter 99765e785f Revert "Add info log message if AOT mode is enabled"
This reverts commit 6cb7fb5897.
2 years ago
Phillip Webb c16c6bc3b5 Fix reachability argfile format
Update the argfile to a format that actually works when
passed to the `native-image` command.

See gh-32738
2 years ago
Phillip Webb a8e701cee2 Provide maven configuration for add-reachability-metadata goal
Update `spring-boot-starter-parent` to execute the native build tools
`add-reachability-metadata` goal when the 'native' profile is active.

Closes gh-32736
2 years ago
Phillip Webb 8358a0e3f3 Fix reachability-metadata.properties location
Update tools to use the correct `reachability-metadata.properties`
location which should include the version number.

See gh-32738
2 years ago
Phillip Webb 9aa2854e00 Remove the execution of NBT in the native maven profile
Update `spring-boot-starter-parent` to remove the `native-compile`
execution.

Closes gh-31770
2 years ago
Brian Clozel 5cee828546 Fix javadoc warnings in HTTP Observation support 2 years ago
Brian Clozel cbca457eff Adapt to HTTP Observation changes in Framework
This commit adapts to the renames/package changes in the HTTP
Observation support in Spring Framework.

See spring-projects/spring-framework#29334
2 years ago
Andy Wilkinson 99f0a5e01d Upgrade to Spring Security 5.7.4
Closes gh-32597
2 years ago
Andy Wilkinson a92388cbee Upgrade to Spring Security 5.6.8
Closes gh-32590
2 years ago
Andy Wilkinson bdb4f24300 Upgrade to Spring Kafka 2.8.10
Closes gh-32596
2 years ago
Andy Wilkinson a16e3e6688 Upgrade to Spring Kafka 2.8.10
Closes gh-32589
2 years ago
Andy Wilkinson 68ea7299f6 Upgrade to Spring Kafka 3.0.0-RC1
Closes gh-32603
2 years ago
Andy Wilkinson 5fbcdfc393 Upgrade to Spring AMQP 3.0.0-RC1
Closes gh-32602
2 years ago
Andy Wilkinson 3082b0c5bf Add a section on AOT to the Gradle plugin's docs
Closes gh-32750
2 years ago
Andy Wilkinson 3d5c864bc9 Merge branch '2.6.x' into 2.7.x
Closes gh-32758
2 years ago
Andy Wilkinson dade5ec3aa Test against Gradle 6.9.3
Closes gh-32757
2 years ago
Moritz Halbritter 6cb7fb5897 Add info log message if AOT mode is enabled
Closes gh-32396
2 years ago
Andy Wilkinson 4700a00d94 Auto-configure CompositeSpanHandler with Brave
Closes gh-32753
2 years ago
Andy Wilkinson ff16f6d6c6 Work around configuration cache problem in NBT Gradle Plugin
See gh-32752
See graalvm/native-build-tools#338
2 years ago
Andy Wilkinson db2641d20f Upgrade to Spring LDAP 3.0.0-RC1
Closes gh-32624
2 years ago
Andy Wilkinson 8fdd12ffeb Upgrade to Spring REST Docs 3.0.0-RC1
Closes gh-32623
2 years ago
Phillip Webb 76ef540716 Merge branch '2.7.x' 2 years ago
Phillip Webb 0f4a978731 Merge branch '2.6.x' into 2.7.x 2 years ago
Phillip Webb 6641a98913 Improve the phrasing around property source ordering 2 years ago
Phillip Webb 071649360b Generate 'META-INF/native-image/argfile' file for buildpack use
Update the Maven and Gradle plugin to generate an `argfile` file
file under `META-INF/native-image` that contains `--exclude-config`
arguments that should be passed when generating a native image.

The contents of the file is generated for each nested jar that has a
`reachability-metadata.properties` file containing 'override=true'.

The `reachability-metadata.properties` file is expected to be generated
by the Graal native build tools plugin.

Closes gh-32738
2 years ago
Phillip Webb 430c6b7e9f Downgrade to SLF4J 1.7 for spring-boot-gradle-plugin tests
The downgrade is required for tests to run in Eclipse.

Closes gh-32626
2 years ago
Phillip Webb 029aab6b58 Document Log4j2 extensions
See gh-32578
2 years ago
Phillip Webb cec090c32e Polish 'Resolve URLs using Log4J2 mechanisms'
See gh-32735
2 years ago
Ralph Goers 5286785127 Resolve URLs using Log4j2 mechanisms
Update `Log4J2LoggingSystem` to that non file URLs are resolved using
Log4j2's `UrlConnectionFactory` mechanism rather than directly.

See gh-32735
2 years ago
Phillip Webb 5a7964af2b Polish 'Support profile specific Log4j2 configuration'
See gh-32734
2 years ago
Ralph Goers 27ed30fdbf Support profile specific Log4j2 configuration
Add a `SpringProfileArbiter` Log4j2 plugin which allows Log4j2
configuration to be included or skipped based on the active Spring
`Environment` profiles.

See gh-32734
2 years ago
Phillip Webb ed424d3adb Polish 'Add Log4J2 PropertySource backed by the Spring Environment'
See gh-32733
2 years ago
Ralph Goers 4f8a9441c2 Add Log4J2 PropertySource backed by the Spring Environment
Register a new `PropertySource` when initializing Log4j2 so that
properties may be resolved against Spring's Environment.

See gh-32733
2 years ago
Phillip Webb 71f5857363 Polish 'Support Log4J2 string lookups from the Spring Environment'
See gh-32732
2 years ago
Ralph Goers 5228b99b22 Support Log4J2 string lookups from the Spring Environment
Add a Log4j2 `SpringLookup` plugin which can be used to resolve strings
from the Spring Environment.

See gh-32732
2 years ago
Phillip Webb d665441ca9 Polish 'Add Spring Environment to LoggerContext'
See gh-32731
2 years ago
Ralph Goers 05a2bd4585 Add Spring Environment to LoggerContext
Update `Log4J2LoggingSystem` to add the Spring `Environment` to Log4j2's
`LoggerContext`. This allow Log4j2 plugins to access the `Environment`
if they need it.

See gh-32731
2 years ago
Phillip Webb a08a6378f0 Polish 'Support 'log4j.configurationFile' system property'
See gh-32730
2 years ago
Ralph Goers 64eb36b7a1 Support 'log4j.configurationFile' system property
Update `Log4J2LoggingSystem.getStandardConfigLocations()` so that
any configured 'log4j.configurationFile' system property is also
included as a location.

See gh-32730
2 years ago
Stephane Nicoll 0ae448eae6 Upgrade to Spring Retry 2.0.0-RC1
Closes gh-32600
2 years ago
Stephane Nicoll 040c78062e Upgrade to Spring Retry 1.3.4
Closes gh-32594
2 years ago
Stephane Nicoll c858c1e998 Upgrade to Spring Retry 1.3.4
Closes gh-32593
2 years ago
Andy Wilkinson 1900dc7566 Upgrade to Jackson Bom 2.13.4.20221013
Closes gh-32725
2 years ago
Andy Wilkinson 9fd3d78bae Upgrade to Jackson Bom 2.13.4.20221013
Closes gh-32724
2 years ago
Scott Frederick 3ea18f07fa Polish "Use NBT plugin version from gradle.properties in image tests"
See gh-32643
2 years ago
Scott Frederick fc93e6bf8b Adapt to changes in Spring Framework snapshots
See gh-32696
2 years ago
Andy Wilkinson 936cb41c6e Upgrade to Jetty Reactive HTTPClient 1.1.13
Closes gh-32723
2 years ago
Andy Wilkinson 0411ebeeaf Upgrade to Jackson Bom 2.13.4.20221013
Closes gh-32722
2 years ago
Andy Wilkinson 3a34916bde Remove dependency management for slf4j-jcl
The module was removing in SLF4J 2.0

See gh-12649
2 years ago
Andy Wilkinson 653309cd5d Upgrade to Undertow 2.2.20.Final
Closes gh-32720
2 years ago
Andy Wilkinson 93a51d0f79 Upgrade to Thymeleaf Extras SpringSecurity 3.1.0.RC1
Closes gh-32718
2 years ago
Andy Wilkinson 2084b41cd3 Upgrade to SLF4J 2.0.3
Closes gh-32717
2 years ago
Andy Wilkinson 809a3b73ba Upgrade to Selenium HtmlUnit 4.5.0
Closes gh-32716
2 years ago
Andy Wilkinson bca00bf0e8 Upgrade to Selenium 4.5.0
Closes gh-32715
2 years ago
Andy Wilkinson a6338f8e20 Upgrade to Rabbit Stream Client 0.8.0
Closes gh-32714
2 years ago
Andy Wilkinson 23028ebc36 Upgrade to OpenTelemetry 1.19.0
Closes gh-32713
2 years ago
Andy Wilkinson 7e80f6268e Upgrade to Netty 4.1.84.Final
Closes gh-32712
2 years ago
Andy Wilkinson 29cb323762 Upgrade to Neo4j Java Driver 5.1.0
Closes gh-32711
2 years ago
Andy Wilkinson dd39e09a51 Upgrade to Logback 1.4.4
Closes gh-32710
2 years ago
Andy Wilkinson df02ec88f5 Upgrade to Liquibase 4.17.0
Closes gh-32709
2 years ago
Andy Wilkinson ef97e5e803 Upgrade to Jetty Reactive HTTPClient 3.0.7
Closes gh-32707
2 years ago
Andy Wilkinson 37c4cfbe34 Upgrade to HtmlUnit 2.65.1
Closes gh-32706
2 years ago
Andy Wilkinson 9247de804b Upgrade to Hazelcast 5.1.4
Closes gh-32705
2 years ago
Andy Wilkinson 3a1e3b35d5 Upgrade to Flyway 9.4.0
Closes gh-32704
2 years ago
Andy Wilkinson 9a398549e9 Upgrade to Ehcache3 3.10.2
Closes gh-32703
2 years ago
Andy Wilkinson d1d9750f23 Upgrade to Byte Buddy 1.12.18
Closes gh-32702
2 years ago
Andy Wilkinson 9161afff3c Upgrade to Artemis 2.26.0
Closes gh-32701
2 years ago
Andy Wilkinson 5544023e33 Upgrade to Spring Data 2022.0.0-RC1
Closes gh-32601
2 years ago
Andy Wilkinson 5b37dd1c66 Upgrade to Thymeleaf 3.1.0.RC1
Closes gh-32628
2 years ago
Andy Wilkinson 654c3353d5 Upgrade to Netty 4.1.84.Final
Closes gh-32700
2 years ago
Andy Wilkinson 09d7bede29 Upgrade to Jetty Reactive HTTPClient 1.1.13
Closes gh-32699
2 years ago
Andy Wilkinson b9148ede2f Upgrade to Hazelcast 5.1.4
Closes gh-32698
2 years ago
Andy Wilkinson 7470342dda Upgrade to Byte Buddy 1.12.18
Closes gh-32697
2 years ago
Andy Wilkinson 4474af6265 Upgrade to Spring Data 2021.2.5
Closes gh-32595
2 years ago
Andy Wilkinson 567146954d Upgrade to Reactor 2020.0.24
Closes gh-32592
2 years ago
Andy Wilkinson 0031759d65 Starting building against Spring Framework 6.0.0-RC2 snapshots
See gh-32696
2 years ago
Andy Wilkinson eaf0523656 Upgrade to Spring Data 2021.1.9
Closes gh-32588
2 years ago
Andy Wilkinson 5329eac5e4 Upgrade to Reactor 2020.0.24
Closes gh-32587
2 years ago
Andy Wilkinson 3244a4a59b Upgrade to Netty 4.1.84.Final
Closes gh-32695
2 years ago
Andy Wilkinson d593d194de Polish "Add auto-configuration for Exemplars"
See gh-32415
2 years ago
Jonatan Ivanov c5b2bc3dc7 Add auto-configuration for Exemplars
See gh-32415
2 years ago
Andy Wilkinson 81ee173877 Polish
See gh-32399
2 years ago
Andy Wilkinson c9b929bd89 Starting building against Spring Data 2021.2.5 snapshots
See gh-32595
2 years ago
Andy Wilkinson 78bf7b640c Start building against Spring Data 2021.1.9 snapshots
See gh-32588
2 years ago
Andy Wilkinson 1af21fe33f Polish "Use TracingAwareMeterObservationHandler if tracing is configured"
See gh-32399
2 years ago
Jonatan Ivanov 415b9025c8 Use TracingAwareMeterObservationHandler if tracing is configured
See gh-32399
2 years ago
Scott Frederick a15c5e2498 Merge branch '2.7.x' 2 years ago
Scott Frederick 6c1103cde0 Support PEM formatted elliptic-curve TLS keys
Apply the changes from e0c79ce598
to the `PrivateKeyParser` used for web server SSL configuration.

See gh-32646
2 years ago
Bertolt Meier 647a2905c8 Add checkstyle rule for List.of() / Set.of() / Map.of()
This commits adds a checkstyle rule to not use List.of(), Set.of()
and Map.of(), preferring Collections.emptyList(), emptySet(), and
emptyMap() respectively.

It replaces usages of these methods across the codebase.

See gh-32655
2 years ago
Johnny Lim 1032f8cc94 Polish Micrometer tracing changes
See gh-32627
2 years ago
Andy Wilkinson e4544c1785 Use new constructor to configure W3CPropagation without baggage
Closes gh-32524
2 years ago
Andy Wilkinson a816851582 Upgrade to Spring HATEOAS 2.0.0-RC1
Closes gh-32652
2 years ago
Andy Wilkinson 7852c45a77 Generate reflection hints for loggers endpoint's responses
Some of the types that are returned are hidden behind a
Map<String, Object> so the operation annotations already been marked
as reflective isn't sufficient.

This commit uses `@RegisterReflectionForBinding` to register the
types that are used as (nested) values in the response maps.

Closes gh-32486
2 years ago
Andy Wilkinson 180d0edbca Decouple AutoTimeProperties from Micrometer Core
Closes gh-32676
2 years ago
Andy Wilkinson 7e9e64a2ea Revert "Merge pull request #32399 from jonatan-ivanov"
This reverts commit ad40ef3398, reversing
changes made to 6eb32647f5.
2 years ago
Jonatan Ivanov a0ceb2c3ff Use TracingAwareMeterObservationHandler if tracing is configured
See gh-32399
2 years ago
Jonatan Ivanov fff4aaaac1 Fix Observation lifecycle issues in ObservationAutoConfigurationTests
See gh-32662
2 years ago
Sébastien Deleuze 5b17cacb1f Remove spring.xml.ignore flag usages
This commit is a follow-up of spring-projects/spring-framework#29277.

See gh-32653
2 years ago
Stephane Nicoll 8013c5f182 Upgrade to MongoDB 4.8.0-beta0
Closes gh-32684
2 years ago
Emil ea654b42fa Fix typo "Elastixsearch"
See gh-32656
2 years ago
Andy Wilkinson 78dccb2772 Upgrade to Reactor 2022.0.0-RC1
Closes gh-32599
2 years ago
Andy Wilkinson 4c2c04ca95 Upgrade to Spring Framework 6.0.0-RC1
Closes gh-32550
2 years ago
Andy Wilkinson 3ab4606584 Make runScripts method of DB initializer more extensible
Closes gh-29137
2 years ago
Andy Wilkinson 403803837a Adapt to changes in REST Docs for documenting query parameters
See gh-32623
2 years ago
Phillip Webb 7e8ed075c0 Merge branch '2.7.x'
Closes gh-32682
2 years ago
Phillip Webb ed01a77a99 Merge branch '2.6.x' into 2.7.x
Closes gh-32681
2 years ago
Phillip Webb e0c79ce598 Support PEM formatted elliptic-curve TLS keys
Update `PrivateKeyParser` to support loading PEM formatted
elliptic-curve keys. We need to do a similar trick to the PKCS1 keys
and convert them to a `PKCS8EncodedKeySpec`.

Fixes gh-32646
2 years ago
Andy Wilkinson 4dfd770406 Ensure that metrics and observation properties are enabled
Closes gh-32676
2 years ago
Andy Wilkinson 3ca5c7ff5b Create AOT source sets as soon as the Java plugin is applied
Previously, the AOT source sets were not created until both the
Java and Spring Boot plugins had been applied. This could create
ordering problems when the Spring Boot plugin's native image plugin
action tried to access the AOT source sets to configure the
classpaths of the nativeCompile and nativeTest tasks. If the
plugins were applied in a particular order the AOT source sets
would not exist and a failure would occur.

This commit updates the Spring Boot AOT plugin to create the source
sets as soon as the Java plugin has been applied. This ensure that
they're in place when reacting to the native image plugin being
applied.

Closes gh-32661
2 years ago
Andy Wilkinson 808e0be552 Merge branch '2.7.x'
Closes gh-32679
2 years ago
Andy Wilkinson 1b604e30f7 Merge branch '2.6.x' into 2.7.x
Closes gh-32678
2 years ago
Andy Wilkinson 215eb96355 Improve error handling in SpringBootPlugin
Closes gh-32677
2 years ago
Stephane Nicoll 579a858361 Upgrade to Lettuce 6.2.1.RELEASE
Closes gh-32674
2 years ago
Stephane Nicoll aee3ab75b1 Upgrade to Jedis 4.3.0
Closes gh-32673
2 years ago
Stephane Nicoll df364987df Upgrade to Hibernate 6.1.4.Final
Closes gh-32672
2 years ago