Commit Graph

9156 Commits (693fa918e27d3543c875b77855d6f4d540b04268)

Author SHA1 Message Date
Stephane Nicoll ee913503b4 Tolerate Hazelcast 4
This commit updates HazelcastHealthIndicator and
HazelcastCacheMeterBinderProvider so that they work with
Hazelcast 4 while retaining compatibility with Hazelcast 3. Reflection
is used when necessary.

This commit also adds a smoke test that validates those features are
working when Hazelcast 4 is on the classpath.

Closes gh-21169
5 years ago
Andy Wilkinson d63e492906 Add support for enabling ISO date, time, and date-time formatting
Closes gh-20579
5 years ago
Andy Wilkinson 95e5d4e045 Polish "Enable users to provide custom time and datetime formats"
See gh-18772
5 years ago
Daniel Knittl-Frank 69b51cd64d Enable users to provide custom time and datetime formats
Extend WebFlux and WebMvc properties with timeFormat and
dateTimeFormat properties to allow users to customize format of
LocalTime and LocalDateTime instances.

See gh-18772
5 years ago
Stephane Nicoll 6921fdacac Expand configuration class eager filtering to imports
Previously, only root auto-configuration classes could be excluded
eagerly via an AutoConfigurationImportFilter. Any configuration class
loaded as a result of processing a particular auto-configuration were
parsed and checked as usual.

This commit makes use of the `getExclusionFilter` callback to expand
this filter to all candidates that are considered. The annotation
processor has also be expanded to generate metadata for non-root
configuration classes.

Closes gh-12157
5 years ago
Stephane Nicoll 0cbc5a78c7 Upgrade to Micrometer 1.5.0
Closes gh-20833
5 years ago
Andy Wilkinson 69a25e4d80 Stop relying on transitive com.nimbusds:oauth2-oidc-sdk dependency 5 years ago
Andy Wilkinson 77f1e37ade Add dependency management for OAuth2 OIDC SDK
Closes gh-20974
5 years ago
Phillip Webb ad1248e4ec Replace "folder" with "directory"
Consistently use the term "directory" instead of "folder"

Closes gh-21218
5 years ago
Brian Clozel ec871d6752 Fix StatusAggregator static initialization
Prior to this commit, there was a cycle between `StatusAggregator` and
`SimpleStatusAggregator`, which caused a static initialization bug -
depending on which class (the implementation or its interface) was
loaded first.

This commit turns the static field of the `StatusAggregator` interface
into a static method to avoid this problem.

Fixes gh-21211
5 years ago
Stephane Nicoll ea5f282e9b Upgrade to Spring Data Neumann-RC2
Closes gh-20949
5 years ago
Stephane Nicoll f24c215a0b Upgrade to Spring HATEOAS 1.1.0.RC1
Closes gh-21210
5 years ago
Stephane Nicoll 5f253ead76 Upgrade to Spring Framework 5.2.6
Closes gh-20945
5 years ago
Stephane Nicoll 673af8d1d9 Upgrade to Spring Data Moore-SR7
Closes gh-20948
5 years ago
Stephane Nicoll 76740db9a5 Upgrade to Spring HATEOAS 1.0.5.RELEASE
Closes gh-21209
5 years ago
Stephane Nicoll ca458c2666 Upgrade to Spring Data Lovelace-SR17
Closes gh-20940
5 years ago
Stephane Nicoll 9e88af9703 Upgrade to Spring Data Lovelace-SR17
Closes gh-20940
5 years ago
Stephane Nicoll 5dc82eda53 Upgrade to Spring Framework 5.1.15
Closes gh-20938
5 years ago
Andy Wilkinson 76ad465f77 Upgrade to Solr 8.5.1
Closes gh-21206
5 years ago
Andy Wilkinson e49e4c2d83 Upgrade to Lettuce 5.3.0.RELEASE
Closes gh-21096
5 years ago
dreis2211 4b0a31acf8 Delete Toml class
See gh-21129
5 years ago
Brian Clozel dac62476a0 Merge branch '2.2.x'
Closes gh-21208
5 years ago
Brian Clozel a63ab468a3 Upgrade to RSocket 1.0.0-RC7
This commit upgrades to RSocket 1.0.0-RC7.
This new RC brings API changes we have to adapt to. As of this commit,
we're introducing a new `RSocketServerCustomizer` which replaces the now
deprecated `ServerRSocketFactoryProcessor`.

Closes gh-21046
5 years ago
Stephane Nicoll 6ff7b81239 Upgrade to Spring Ws 3.0.9.RELEASE
Closes gh-21205
5 years ago
Stephane Nicoll 47c26ef69d Upgrade to Spring Security 5.2.3.RELEASE
Closes gh-21204
5 years ago
Stephane Nicoll 4cc45f964c Upgrade to Spring Batch 4.2.2.RELEASE
Closes gh-21203
5 years ago
Stephane Nicoll 423ec71d45 Upgrade to Postgresql 42.2.12
Closes gh-21202
5 years ago
Stephane Nicoll 65fc43865a Upgrade to Neo4j Ogm 3.2.11
Closes gh-21201
5 years ago
Stephane Nicoll cacdfa443f Upgrade to Liquibase 3.8.9
Closes gh-21200
5 years ago
Stephane Nicoll f621ac61fa Upgrade to Kotlin 1.3.72
Closes gh-21199
5 years ago
Stephane Nicoll f45fd47a34 Upgrade to Infinispan 9.4.19.Final
Closes gh-21198
5 years ago
Stephane Nicoll 51cedc6225 Upgrade to Hibernate Validator 6.0.19.Final
Closes gh-21197
5 years ago
Stephane Nicoll 5668bf456a Upgrade to Hibernate 5.4.14.Final
Closes gh-21196
5 years ago
Stephane Nicoll e822c497ef Upgrade to Elasticsearch 6.8.8
Closes gh-21194
5 years ago
Stephane Nicoll 6182d83f8c Upgrade to Jetty 9.4.28.v20200408
Closes gh-21193
5 years ago
Stephane Nicoll e88ee06b5b Upgrade to Groovy 2.5.11
Closes gh-21192
5 years ago
Stephane Nicoll 7820f0115a Upgrade to Tomcat 9.0.34
Closes gh-21191
5 years ago
Stephane Nicoll 5027a05b0e Upgrade to Johnzon Jsonb 1.2.4
Closes gh-21190
5 years ago
Stephane Nicoll c7d0928114 Upgrade to Byte Buddy 1.10.9
Closes gh-21189
5 years ago
Stephane Nicoll e82bd7f3a1 Upgrade to Mysql 8.0.20
Closes gh-21188
5 years ago
Stephane Nicoll 32f128bb9f Upgrade to Joda Time 2.10.6
Closes gh-21187
5 years ago
Stephane Nicoll 09fb95bd6d Upgrade to Netty 4.1.49.Final
Closes gh-21186
5 years ago
Stephane Nicoll 13edf342f6 Upgrade to Micrometer 1.3.8
Closes gh-21185
5 years ago
Stephane Nicoll c8b2440afb Upgrade to Dropwizard Metrics 4.1.6
Closes gh-21184
5 years ago
Stephane Nicoll 0fb174e54c Upgrade to Hikaricp 3.4.3
Closes gh-21183
5 years ago
Stephane Nicoll 732a51a898 Upgrade to Sendgrid 4.4.8
Closes gh-21182
5 years ago
Stephane Nicoll 8fb2ea4e65 Upgrade to Appengine Sdk 1.9.80
Closes gh-21181
5 years ago
Stephane Nicoll 8831856d79 Upgrade to Caffeine 2.8.2
Closes gh-21180
5 years ago
Stephane Nicoll fb6fcff198 Upgrade to Couchbase Client 2.7.14
Closes gh-21179
5 years ago
Phillip Webb 50e9674631 Backport "Attempt to prevent JarFiles from being left open"
Update `JarFile` so that `super.close()` is called early so that the
file is not left open. Since we re-implement `JarFile` methods to work
directly on the underlying `RandomAccessDataFile`, it should be safe
to close immediately.

Closes gh-21177
5 years ago
Phillip Webb 6fe30a8a7e Merge branch '2.2.x'
Closes gh-21175
5 years ago
Phillip Webb 36b082e8c1 Merge branch '2.1.x' into 2.2.x
Closes gh-21174
5 years ago
Phillip Webb e2705b2cfd Throw exception if classpath*: is used
Update `ConfigFileApplicationListener` to throw a better exception if
`classpath*:` is used as a location.

Closes gh-21168
5 years ago
Andy Wilkinson fb33610027 Automatically create developmentOnly configuration
Previously, the developmentOnly configuration, typically used for
Devtools, had to be declared manually. The BootJar and BootWar tasks
then had a property, excludeDevtools, that could be used to control
whether or not Devtools would be excluded from the executable archive.

This commit updates the reaction to the Java plugin being applied to
automatically create the developmentOnly configuration. The classpaths
of bootJar and bootWar are then configured not to include the contents
of the developmentOnly configuration. As a result of this, the
excludeDevtools property is no longer needed and has been deprecated.
Its default has also been changed from true to false to make it easy
to opt in to Devtools, when configured as a development-only
dependency, being included in executable jars and wars by adding
developmentOnly to the classpath of the archive task.

Closes gh-16599
5 years ago
Stephane Nicoll cbdc5d9746 Upgrade to Reactor Bom Dysprosium-SR7
Closes gh-20943
5 years ago
Stephane Nicoll 0761ff1f0b Upgrade to Reactor Bom Dysprosium-SR7
Closes gh-20942
5 years ago
Stephane Nicoll 16005c608f Upgrade to Reactor Bom Californium-SR18
Clsoes gh-20937
5 years ago
Brian Clozel dfdee3e00e Revert "Add support for Reactor Netty Micrometer metrics"
This commit removes the support for Reactor Netty metrics since it
seems that Spring Boot should not use this feature:

* HTTP metrics are already covered by WebFlux
* TCP metrics are only meant to TCP server/clients
* allocator metrics are already provided by Netty and there is
no specific API to enable them here.

Closes gh-19388
5 years ago
Stephane Nicoll 4165863859 Polish contribution
See gh-21130
5 years ago
richard1230 a989879dbc Polish
See gh-21130
5 years ago
dreis2211 c7d7facc3a Remove empty test rule package
See gh-21137
5 years ago
Stephane Nicoll 3ea0b4198b Upgrade to Maven Dependency Plugin 3.1.2
Closes gh-21167
5 years ago
Stephane Nicoll a7e3257e7f Upgrade to Xmlunit2 2.6.4
Closes gh-21166
5 years ago
Stephane Nicoll cac0407762 Upgrade to Spring Ws 3.0.9.RELEASE
Closes gh-21165
5 years ago
Stephane Nicoll 4e93115b05 Upgrade to Spring Session Bom Bean-SR10
Closes gh-21164
5 years ago
Stephane Nicoll 0697b3acb4 Upgrade to Spring Security 5.1.9.RELEASE
Closes gh-21163
5 years ago
Stephane Nicoll f24351d12a Upgrade to Spring Batch 4.1.4.RELEASE
Closes gh-21162
5 years ago
Stephane Nicoll c3c5b444e7 Upgrade to Postgresql 42.2.12
Closes gh-21161
5 years ago
Stephane Nicoll 25fb48d0e3 Upgrade to Neo4j Ogm 3.1.19
Closes gh-21160
5 years ago
Stephane Nicoll 067a07386a Upgrade to Mimepull 1.9.13
Closes gh-21159
5 years ago
Stephane Nicoll e6b17bc5b8 Upgrade to Infinispan 9.4.19.Final
Closes gh-21158
5 years ago
Stephane Nicoll 9bb16e44b0 Upgrade to Hibernate Validator 6.0.19.Final
Closes gh-21157
5 years ago
Stephane Nicoll 191a4e5a51 Upgrade to Hibernate 5.3.16.Final
Closes gh-21156
5 years ago
Stephane Nicoll 19826847d4 Upgrade to Freemarker 2.3.30
Closes gh-21155
5 years ago
Stephane Nicoll 46fe25480c Upgrade to Jetty 9.4.28.v20200408
Closes gh-21154
5 years ago
Stephane Nicoll ce4001c54b Upgrade to Janino 3.0.16
Closes gh-21153
5 years ago
Stephane Nicoll a9a3845168 Upgrade to Groovy 2.5.11
Closes gh-21152
5 years ago
Stephane Nicoll a01b0b7145 Upgrade to Tomcat 9.0.34
Closes gh-21151
5 years ago
Stephane Nicoll 4a51a8be2a Upgrade to Solr 7.7.3
Closes gh-21150
5 years ago
Stephane Nicoll a336f29ce2 Upgrade to Httpclient 4.5.12
Closes gh-21149
5 years ago
Stephane Nicoll 72e3d71067 Upgrade to Activemq 5.15.12
Closes gh-21148
5 years ago
Stephane Nicoll c0398e190a Upgrade to Mysql 8.0.20
Closes gh-21147
5 years ago
Stephane Nicoll d63d2075fa Upgrade to Joda Time 2.10.6
Closes gh-21146
5 years ago
Stephane Nicoll 671f3c2075 Upgrade to Undertow 2.0.30.Final
Closes gh-21145
5 years ago
Stephane Nicoll d1821b3895 Upgrade to Rxjava2 2.2.19
Closes gh-21144
5 years ago
Stephane Nicoll b29d2eedc8 Upgrade to Netty Tcnative 2.0.30.Final
Closes gh-21143
5 years ago
Stephane Nicoll 8a02bac617 Upgrade to Netty 4.1.49.Final
Closes gh-21142
5 years ago
Stephane Nicoll effa0cb024 Upgrade to Micrometer 1.1.13
Closes gh-21141
5 years ago
Stephane Nicoll 4ea31a2d2e Upgrade to Appengine Sdk 1.9.80
Closes gh-21140
5 years ago
Stephane Nicoll 4c3880427a Upgrade to Jackson 2.9.10.20200411
Closes gh-21139
5 years ago
Stephane Nicoll 0c4efffaa7 Upgrade to Couchbase Client 2.7.14
Closes gh-21138
5 years ago
Brian Clozel 956afdcf97 Add support for Reactor Netty Micrometer metrics
This commit enables the production of TCP and buffer allocator metrics
for Reactor Netty, client and server.

When applications use auto-configured server
(`NettyReactiveWebServerFactory`) and client (through
`WebClient.Builder`) instances, metrics will be enabled.

Note that HTTP metrics are not enabled here, since similar metrics are
already produced at the WebFlux level. Also, to avoid cardinality
explosion of metrics (through the URI tag), Reactor Netty offers
configurable infrastructure to deduplicate URI tags by turning expanded
URI instances into templated URIs. This is not targeted for Spring
usage.

Closes gh-19388
5 years ago
Brian Clozel b337f67f93 Add ReactorNettyHttpClientMapper
This new customizer-like interface make it possible to configure the
Reactor Netty `HttpClient` that is going to be used by the
`WebClient.Builder` provided by Spring Boot.

Closes gh-21135
5 years ago
Brian Clozel 8f84147f37 Fix deprecations after Reactor Netty upgrade 5 years ago
Phillip Webb 77b9dd900c Merge branch '2.2.x'
See gh-21127
5 years ago
Phillip Webb 7d53f7d27f Attempt to prevent JarFiles from being left open
Update `JarFile` to also call `super.close()` early for nested jars.

See gh-21126
5 years ago
Phillip Webb 4f47b7b46a Merge branch '2.2.x'
See gh-21127
5 years ago
Phillip Webb 7c6e912463 Attempt to prevent JarFiles from being left open
Update `JarFile` so that `super.close()` is called early so that the
file is not left open. Since we re-implement `JarFile` methods to work
directly on the underlying `RandomAccessDataFile`, it should be safe
to close immediately.

See gh-21126
5 years ago
Stephane Nicoll 85a3fcfb5e Merge branch '2.2.x'
Closes gh-21119
5 years ago
Stephane Nicoll 80410997ec Polish "Enhance Database initialization how to guide"
See gh-21077
5 years ago
nikmanzotti f2b10be01e Enhance Database initialization how to guide
See gh-21077
5 years ago
Stephane Nicoll 961be0fea3 Merge branch '2.2.x'
Closes gh-21118
5 years ago
dreis2211 e3a9bacf3b Fix typo
See gh-21002
5 years ago
dreis2211 54f319acd5 Remove unused method
See gh-21117
5 years ago
Johnny Lim ef567388c1 Polish
See gh-21110
5 years ago
dreis2211 848127ae49 Avoid recompiling pattern in Handler#canonicalize
See gh-21103
5 years ago
dreis2211 c2fb95151b Fix link to R2DBC Query in docs
See gh-21079
5 years ago
dreis2211 667033c149 Fix Actuator API PDF name
See gh-21054
5 years ago
Stephane Nicoll c7baf5fda1 Update copyright year of changed file
See gh-21009
5 years ago
dreis2211 5eb5bf0a2d Polish
See gh-21009
5 years ago
Stephane Nicoll 85e9f713b0 Update copyright year of changed files
See gh-21007
5 years ago
Johnny Lim 29717423a3 Remove this keyword on member method invocations
See gh-21007
5 years ago
Mikael c06edbe6f4 Polish ApplicationHome
See gh-20992
5 years ago
Andy Wilkinson 076a384c9c Merge branch '2.2.x'
Closes gh-21112
5 years ago
Andy Wilkinson 29dc236bb2 Broaden deprecation warning check in Gradle Plugin's tests
Closes gh-21111
5 years ago
Andy Wilkinson d5b944140a Attempt to stabilise CouchbaseAutoConfigurationIntegrationTests
Starting the CouchbaseContainer fails intermittently when creation
of the primary index for the bucket fails with a read timeout. The
test doesn't require a primary index for the bucket so this commit
disables it creation in the hope that it will help to stabilise the
test.
5 years ago
Andy Wilkinson dc75ca3942 Avoid capturing TCCL when creating DefaultResourceLoaders
Previously, DefaultResourceLoader instances were created using the
default constructor. This causes the resource loader to capture the
TCCL that was in place at that time. This can lead to a class loader
leak if the resource loader is referenced directly or indirectly from
a static field of a class loaded by a different class loader.

This commit updates the creation of DefaultResourceLoader instances
in main code so that the resource load will use the class loader of
the creating class. In almost all cases this will be the same class
loader as was the thread context class loader that was being captured
so the change in behavior is minimal. Crucially, it will still address
the situation where the TCCL was different.

Note the DevTools' ApplicationContextResourceLoader has been updated
to explicitly use the TCCL. This ensures that it uses the restart
class loader which is required for DevTools to function correctly.

Fixes gh-20900
5 years ago
Andy Wilkinson d53be18582 Deprecate support for Bitronix
Closes gh-20823
5 years ago
Phillip Webb 6ccba24494 Merge branch '2.2.x'
Close gh-20507 in 2.3.0.RC1
5 years ago
Phillip Webb 581ce09f88 Merge branch '2.1.x' into 2.2.x
Closes gh-21106
5 years ago
Phillip Webb 416cfc2c86 Improve @Value documentation
Improve "@ConfigurationProperties vs. @Value" documentation with the
recommendation that kebab-case is used with the `@Value` annotation.

Closes gh-20507
5 years ago
Phillip Webb db28c0c65c Backport "Attempt to fix CI" 5 years ago
Phillip Webb 4de69c380d Attempt to fix CI 5 years ago
dreis2211 1be8312886 Fix PropertiesMigrationListenerTests
See gh-21104
5 years ago
Phillip Webb 49345025ac Merge branch '2.2.x'
Closes gh-21105
5 years ago
Phillip Webb 93f7e2b6ba Limit when PortInUseException is thrown
Refactor `PortInUseException` logic to a single place and refine when
the exception is thrown.

Prior to this commit, we assumed that a `BindException` was only thrown
when the port was in use. In fact, it's possible that the exception
could be thrown because the requested address "could not be assigned".

We now only throw a `PortInUserException` if the `BindException` message
includes the phrase "in use".

Fixes gh-21101
5 years ago
Phillip Webb b73d5038d5 Merge branch '2.2.x' 5 years ago
Phillip Webb 9bb53a4c37 Polish 5 years ago
Scott Frederick 8f5ef951de Use current timestamp for index files with Gradle
This commit removes changes the timestamp used when writing the
classpath and layers index files in the Gradle plugin to be the
current timestamp unless `preserveFileTimestamps=true`. It also
polishes some duplication in the handling of entry attributes
when creating the fat archive and adds a test to verify that
the Gradle plugin uses the same fixed timestamp constant as
Gradle uses internally.

See gh-21005
5 years ago
Madhura Bhave b3ccefdb57 Merge branch '2.2.x'
Closes gh-21102
5 years ago
Madhura Bhave 4dc9bbe127 @SpringBootTest classes with different args shouldn't share a context
Fixes gh-20866
5 years ago
Stephane Nicoll ddcd1bc7bb Remove metadata for configuration keys that were removed in 2.0
Closes gh-19706
5 years ago
Stephane Nicoll 623fbcbf8c Polish 5 years ago
Stephane Nicoll 1019dbbc47 Merge branch '2.2.x'
Closes gh-21100
5 years ago
Stephane Nicoll 8ac3ab5551 Add missing metadata for removed configuration keys
Closes gh-20846
5 years ago
Stephane Nicoll 6c02daf2bc Merge branch '2.2.x'
Closes gh-21098
5 years ago
Stephane Nicoll 311952730e Merge branch '2.1.x' into 2.2.x
Closes gh-21097
5 years ago
Stephane Nicoll 291165f060 Order additional metadata according to lexicographic order
Closes gh-21095
5 years ago
Andy Wilkinson d05c973e71 Polish 5 years ago
Stephane Nicoll fe90b2a251 Rename Service Level Agreement to Service Level Objective
This commit harmonizes our integration of Micrometer's Service Level
objectives.

Closes gh-21076
5 years ago
Phillip Webb 48821bccb7 Merge branch '2.2.x'
Closes gh-21092
5 years ago
Phillip Webb d1649fbb9a Merge branch '2.1.x' into 2.2.x
Closes gh-21091
5 years ago
Phillip Webb e0f94f54ac Add "Health as Gauge" how-to documentation
Add how-to documentation describing how health information can be
exported to a Micrometer Gauge.

Closes gh-18329
5 years ago
Madhura Bhave 21bb249a73 Merge branch '2.2.x'
Closes gh-21090
5 years ago
Madhura Bhave b9c2b7b257 Prevent early initialization in MockitoPostProcessor
Fixes gh-20665
5 years ago
Phillip Webb 3e3587e0fb Polish 5 years ago
Phillip Webb 56711d678a Merge branch '2.2.x'
Closes gh-21083
5 years ago
Phillip Webb 102729b5e1 Merge branch '2.1.x' into 2.2.x
Closes gh-21082
5 years ago
Phillip Webb b3d33754a5 Remove outdated FIXMEs from tests
Closes gh-19782
5 years ago
Andy Wilkinson ab82e59aa1 Polish "Improve property name in thrown Micrometer ValidationException"
See gh-21069
5 years ago