Commit Graph

25829 Commits

Author SHA1 Message Date
dreis2211 ef9f1d39a3 Remove redundant MockitoAnnotations.initMocks()
See gh-20601
2020-03-22 08:43:50 +01:00
Stephane Nicoll 70aa788747 Merge branch '2.2.x'
Closes gh-20600
2020-03-21 15:15:20 +01:00
Stephane Nicoll 8593270b5b Only remove trailing slash from URI value
This commit upgrades the algorithm when trailing slash are to be
ignored. Previously a root URI (i.e. "/") would result to to empty
string which is an issue for monitoring system that requires tag values
to be non empty. If the URI is a single character, the trailing is not
applied and "/" is left as is.

Closes gh-20536
2020-03-21 15:11:50 +01:00
Stephane Nicoll 9766127f9a Merge branch '2.2.x'
Closes gh-20599
2020-03-21 14:02:09 +01:00
Stephane Nicoll 1bf7d25141 Remove Java 13 CI job
Closes gh-20578
2020-03-21 13:56:41 +01:00
Brian Clozel 9e67868694 Upgrade to spring-doc-resources 0.2.0.RELEASE 2020-03-21 11:35:05 +01:00
Brian Clozel 6b9f2cac17 Fix section title levels in reference docs 2020-03-21 11:33:42 +01:00
Brian Clozel ffdf9a422f Polish Liveness and Readiness support
This commit moves the core Liveness and Readiness support to its own
`availability` package. We've made this a core concept independent of
Kubernetes.

Spring Boot now produces `LivenessStateChanged` and
`ReadinessStateChanged` events as part of the typical application
lifecycle.

Liveness and Readiness Probes (`HealthIndicator` components and health
groups) are still configured only when deployed on Kubernetes.

This commit also improves the documentation around Probes best practices
and container lifecycle considerations.

See gh-19593
2020-03-20 23:54:00 +01:00
Andy Wilkinson 3edc1c3a7d Merge pull request #20585 from dreis2211
* gh-20585:
  Upgrade to Gradle 6.3 RC4

Closes gh-20585
2020-03-20 11:15:29 +00:00
dreis2211 7a77dbdea8 Upgrade to Gradle 6.3 RC4
See gh-20585
2020-03-20 11:15:09 +00:00
Andy Wilkinson 6cff66ac4d Merge branch '2.2.x'
Closes gh-20590
2020-03-20 11:03:37 +00:00
Andy Wilkinson 9e7ab46ecc Merge branch '2.1.x' into 2.2.x
Closes gh-20589
2020-03-20 11:03:15 +00:00
Andy Wilkinson 5e61f0d7b1 Merge pull request #20583 from j0rdanit0
* gh-20583:
  Link to correct factory in TomcatReactiveWebServerFactory's javadoc

Closes gh-20583
2020-03-20 11:02:57 +00:00
Jordan Simpson 0d9d0f8532 Link to correct factory in TomcatReactiveWebServerFactory's javadoc
See gh-20583
2020-03-20 11:02:41 +00:00
Andy Wilkinson c3b04d7376 Merge branch '2.2.x'
Closes gh-20588
2020-03-20 10:55:27 +00:00
Andy Wilkinson 242e6b9974 Merge branch '2.1.x' into 2.2.x
Closes gh-20587
2020-03-20 10:54:43 +00:00
Andy Wilkinson 4eb393ec5b Merge pull request #20577 from dreis2211
* gh-20577:
  Only suggest Ubuntu versions available in the Docker registry

Closes gh-20577
2020-03-20 10:54:08 +00:00
dreis2211 e6abcacf1a Only suggest Ubuntu versions available in the Docker registry
See gh-20577
2020-03-20 10:53:40 +00:00
Scott Frederick 3f378e1276 Add command-line options for Gradle bootBuildImage parameters
This commit adds support for setting the image name and builder
parameters of the Gradle bootBuildImage task using command-line
options as an alternative to DSL configuration.

See gh-20520
2020-03-19 17:21:07 -05:00
Brian Clozel b30e5a60c5 Polish
See gh-19593
2020-03-19 20:07:35 +01:00
Stephane Nicoll b546415d32 Merge branch '2.2.x'
See gh-20568
2020-03-19 15:30:54 +01:00
Stephane Nicoll 833f0a1db3 Merge branch '2.1.x' into 2.2.x
See gh-20567
2020-03-19 15:29:20 +01:00
Stephane Nicoll d0ccb59931 Revert "Upgrade CI images to Ubuntu Bionic 20200311"
This reverts commit d25286c5

Closes gh-20566
2020-03-19 15:23:36 +01:00
Stephane Nicoll e87be17074 Merge branch '2.2.x' 2020-03-19 15:17:44 +01:00
Stephane Nicoll 168326d9e4 Polish
See gh-20576
2020-03-19 15:17:09 +01:00
Stephane Nicoll f239a440dd Merge branch '2.2.x' 2020-03-19 15:11:21 +01:00
dreis2211 0e796479dc Add Java 14 CI
Closes gh-20576
2020-03-19 14:54:33 +01:00
Stephane Nicoll 579a6ac254 Adapt tests for support for Java 14
See gh-20576
2020-03-19 14:54:33 +01:00
Andy Wilkinson f5e1bad900 Polish 2020-03-19 13:53:29 +00:00
Brian Clozel fd0b2f6695 Add Kubernetes Liveness and Readiness Probes support
Prior to this commit and as of Spring Boot 2.2.0, we would advise
developers to use the Actuator health groups to define custom "liveness"
and "readiness" groups and configure them with subsets of existing
health indicators.

This commit addresses several limitations with that approach.

First, `LivenessState` and `ReadinessState` are promoted to first class
concepts in Spring Boot applications. These states should not only based
on periodic health checks. Applications should be able to track changes
(and adapt their behavior) or update states (when an error happens).

The `ApplicationStateProvider` can be injected and used by applications
components to get the current application state. Components can also
track specific `ApplicationEvent` to be notified of changes, like
`ReadinessStateChangedEvent` and `LivenessStateChangedEvent`.
Components can also publish such events with an
`ApplicationEventPublisher`. Spring Boot will track startup event and
application context state to update the liveness and readiness state of
the application. This infrastructure is available in the
main spring-boot module.

If Spring Boot Actuator is on the classpath, additional
`HealthIndicator` will be contributed to the application:
`"LivenessProveHealthIndicator"` and `"ReadinessProbeHealthIndicator"`.
Also, "liveness" and "readiness" Health groups will be defined if
they're not configured already.

Closes gh-19593
2020-03-19 14:11:00 +01:00
Brian Clozel b680db6cd8 Add HealthEndpointGroupsRegistry and its Customizer
Prior to this commit, `HealthContributor` would be exposed under the
main `HealthEndpoint` and subgroups, `HealthEndpointGroups`. Groups are
driven by configuration properties and there was no way to contribute
programmatically new groups.

This commit introduces the `HealthEndpointGroupsRegistry` (a mutable
version of `HealthEndpointGroups`) and a
`HealthEndpointGroupsRegistryCustomizer`. This allows configurations to
add/remove groups during Actuator auto-configuration.

Closes gh-20554
2020-03-19 14:11:00 +01:00
Brian Clozel 4b7ed5efef Override CloudPlatform auto-detection with property
This commit adds a new `"spring.main.cloud-platform"` configuration
property that overrides the `CloudPlatform` detection.

This makes it easier to enable paltform-specific features when running
applications locally or when writing integration tests.

Closes gh-20553
2020-03-19 14:11:00 +01:00
Stephane Nicoll 0b7f198b54 Publish Maven plugin API
This commit enables javadoc generator for the Spring Boot Maven plugin.

This also harmonizes the structure of the documentation, with an `/api`
and a `/reference` root directories for the javadoc and the reference
guide respectively.

Closes gh-20127
2020-03-19 14:00:58 +01:00
Stephane Nicoll 58a45c53ac Upgrade to Groovy 2.5.10
Closes gh-20575
2020-03-19 13:33:57 +01:00
Stephane Nicoll 7014cc55aa Merge pull request #19475 from bono007
* pr/19475:
  Polish "Add 'threads' configuration group for embedded containers"
  Add 'threads' configuration group for embedded containers

Closes gh-19475
2020-03-19 13:22:10 +01:00
Stephane Nicoll 5893786cbb Polish "Add 'threads' configuration group for embedded containers"
See gh-19475
2020-03-19 13:13:45 +01:00
cbono 208f58104a Add 'threads' configuration group for embedded containers
See gh-19475
2020-03-19 12:12:11 +01:00
Stephane Nicoll 5a687dfa89 Merge branch '2.2.x' 2020-03-19 11:18:21 +01:00
Stephane Nicoll bece0f1360 Start building against Spring Kafka 2.3.7 snapshots
See gh-20574
2020-03-19 11:00:19 +01:00
Stephane Nicoll 96cffb9dd3 Start building against Spring Data Moore SR6 snapshots
See gh-20573
2020-03-19 10:59:18 +01:00
Stephane Nicoll e940e751c1 Start building against Spring Framework 5.2.5 snapshots
See gh-20571
2020-03-19 10:52:32 +01:00
Stephane Nicoll 3966730e02 Start building against Reactor Dysprosium-SR6 snapshots
See gh-20569
2020-03-19 10:49:42 +01:00
Stephane Nicoll 2e85c4f3c6 Merge pull request #20360 from dreis2211
* pr/20360:
  Add security.protocol to KafkaProperties

Closes gh-20360
2020-03-19 10:44:18 +01:00
dreis2211 7924dd62b0 Add security.protocol to KafkaProperties
See gh-20360
2020-03-19 10:36:20 +01:00
Stephane Nicoll 521143a314 Merge branch '2.2.x'
Closes gh-20568
2020-03-19 10:12:11 +01:00
Stephane Nicoll 68a2be0ad5 Merge branch '2.1.x' into 2.2.x
Closes gh-20567
2020-03-19 10:11:13 +01:00
Stephane Nicoll 07d28dcc02 Merge pull request #20566 from dreis2211
* pr/20566:
  Upgrade CI images to Ubuntu Bionic 20200311

Closes gh-20566
2020-03-19 10:09:49 +01:00
dreis2211 d25286c5d6 Upgrade CI images to Ubuntu Bionic 20200311
See gh-20566
2020-03-19 10:09:28 +01:00
Scott Frederick e607c6842f Polish Gradle layer configuration DSL
This commit modifies the DSL for custom layer configuration in the
Gradle plugin to avoid duplication of terms that could be confusing.

Fixes gh-20563
2020-03-18 16:21:40 -05:00
Stephane Nicoll 06cefabb5b Merge pull request #20561 from dreis2211
* pr/20561:
  Upgrade to Gradle 6.3 RC3

Closes gh-20561
2020-03-18 20:44:29 +01:00