Commit Graph

8531 Commits (d61abfce257461c26201dae97b16b965b5f9de12)

Author SHA1 Message Date
Scott Frederick 44f7508825 Fix BuildImageMojo javadoc. 5 years ago
Scott Frederick 08e96427de Add command-line properties for Maven build-image options
This commit adds support for setting the image name and builder
parameters of the Maven spring-boot:build-image goal using command-line
properties as an alternative to plugin configuration in pom.xml. Per
Maven conventions, a value in pom.xml configuration will override a
command-line property when both are provided.

Fixes gh-20520
5 years ago
Stephane Nicoll f470f27666 Merge branch '2.2.x'
Closes gh-20549
5 years ago
dreis2211 d9171d0afe Use @Configuration(proxyBeanMethods=false) wherever possible
See gh-20541
5 years ago
Stephane Nicoll 58eb0ba4d3 Add additional timeout settings
This commit expands the `spring.couchbase.env.timeouts` configuration
namespace with timeouts for disconnect, key-value operations with a
durability level, search, analytics and management.

Closes gh-19893

Co-authored-by: Michael Nitschinger <michael@nitschinger.at>
5 years ago
Stephane Nicoll abe43b2e83 Upgrade to Couchbase SDK v3
This commit upgrades to the Couchbase SDK v3 which brings the following
breaking changes:

* Bootstrap hosts have been replaced by a connection string and the
authentication is now mandatory.
* A `Bucket` is no longer auto-configured. The
`spring.couchbase.bucket.*` properties have been removed
* `ClusterInfo` no longer exists and has been replaced by a dedicated
API on `Cluster`.
* `CouchbaseEnvironment` no longer exist in favour of
`ClusterEnvironment`, the customizer has been renamed accordingly.
* The bootstrap-related properties have been removed. Users requiring
custom ports should supply the seed nodes and initialize a Cluster
themselves.
* The endpoints-related configuration has been consolidated in a
single IO configuration.

The Spring Data Couchbase provides an integration with the new SDK. This
leads to the following changes:

* A convenient `CouchbaseClientFactory` is auto-configured.
* Repositories are configured against a bucket and a scope. Those can
be set via configuration in `spring.data.couchbase.*`.
* The default consistency property has been removed in favour of a more
flexible annotation on the repository query methods instead. You can now
specify different query consistency on a per method basis.
* The `CacheManager` implementation is provided, as do other stores for
consistency so a dependency on `couchbase-spring-cache` is no longer
required.

See gh-19893

Co-authored-by: Michael Nitschinger <michael@nitschinger.at>
5 years ago
Stephane Nicoll e3899df22c Configure Spring Data Couchbase explicitly
This commit configures Spring Data Couchbase explicitly rather than
relying on the abstract configuration class. This has the advantage of
simplifying the auto-configuration and let it us proxy-free
configuration classes.

Spring Boot no longer uses or interacts with CouchbaseConfigurer. Users
relying on that to teach Spring Boot which components to use should
rely on `@Primary` flag instead in case of multiple beans of the same
type.

`CouchbaseConfiguration` is no longer public as extending from it is
no longer necessary. If the `CouchbaseEnvironment` has to be
customized, a `CouchbaseEnvironmentBuilderCustomizer` bean can be
registered to tune the auto-configured environment.

Closes gh-20533
5 years ago
Andy Wilkinson 4544785a4f Merge branch '2.2.x'
Closes gh-20544
5 years ago
Andy Wilkinson 566f79b086 Merge branch '2.1.x' into 2.2.x
Closes gh-20543
5 years ago
Andy Wilkinson b51c7386aa Fix detection of application home for paths containing spaces
Fixes gh-20531
5 years ago
Madhura Bhave fb8b531bfd Polish 5 years ago
Madhura Bhave 3e8ee2a296 Add missing package-info.json
Closes gh-20516
5 years ago
Madhura Bhave 84b2e8c308 Rename classes package to application
Closes gh-20526
5 years ago
Scott Frederick 3dea2201c4 Use Gradle's configuration avoidance API
Register Boot Gradle tasks instead of creating them so they can be
loaded lazily.

Closes gh-18881
5 years ago
Scott Frederick f2dadf5a87 Add support for customizing layers in Gradle
This commit adds configuration to the Spring Boot Gradle plugin that
allows the names and contents of layers to be customized in the build
configuration.

Fixes gh-20296
5 years ago
Andy Wilkinson c4a55a5fb4 Fail fast when attempting to repackage a reproducible war
Maven's war plugin does not support reproducible builds, resulting in
the entries in the war file not being written in a consistent order
from build to build.

Closes gh-20176
5 years ago
Andy Wilkinson ca202ad59f Support Maven's outputTimestamp when repackaging jars and wars
Closes gh-20176
5 years ago
dreis2211 5975e7bd8d Fix some deprecation warnings
See gh-20527
5 years ago
dreis2211 3e24df3beb Fix method order checkstyle issue
See gh-20525
5 years ago
Andy Wilkinson 0315724126 Cache endpoint responses on a per-principal basis
Previously, any HTTP request to an endpoint that included a principal
would bypass the cache. This prevented authenticated requests from
making use of the cache and its configurable time-to-live.

This commit updates the caching operation invoker to include the
principal, if any, in its cache key. As a result, requests that
include a principal will make use of the cache, potentially returning
the result of a previous invocation of the same endpoint by the same
principal.

Closes gh-19538
5 years ago
Andy Wilkinson ef9960c69f Allow additional tags to be contributed to WebMvc and WebFlux defaults
Closes gh-20175
5 years ago
Andy Wilkinson e7ece77a7c Upgrade to Undertow 2.0.30.Final
Closes gh-20514
5 years ago
Andy Wilkinson e28697eed8 Upgrade to Sun Mail 1.6.5
Closes gh-20513
5 years ago
Andy Wilkinson 38763a4e48 Upgrade to Maven Dependency Plugin 3.1.2
Closes gh-20512
5 years ago
Andy Wilkinson 2d9bfb9bdf Upgrade to Kafka 2.4.1
Closes gh-20511
5 years ago
Andy Wilkinson 6216dfbe5c Upgrade to Jakarta Mail 1.6.5
Closes gh-20510
5 years ago
Madhura Bhave e49e62df5c Add support for customizing layers in Maven
This commit adds an additional 'layers/configuration' property that can
be used to refer to a separate layers configuration file. This separate
file defines:

* The layers and their order of precedence,
* How libraries are handled using filters that match against the
coordinates of each library, and
* How classes are handled using filters that match against the location
of the entry

An XSD to validate the XML configuration file is available.

Closes gh-20295

Co-authored-by: Stephane Nicoll <snicoll@pivotal.io>
5 years ago
Andy Wilkinson 896d2c8579 Upgrade to Spring Integration 5.3.0.M3
Closes gh-20489
5 years ago
Andy Wilkinson 5446858535 Upgrade to Spring Kafka 2.4.4.RELEASE
Closes gh-20469
5 years ago
Andy Wilkinson 77dbe999b9 Polish "Add clearChecksums to Liquibase auto-configuration"
See gh-20417
5 years ago
ferengra a2680efadb Add clearCheckSums to Liquibase auto configuration
Liquibase auto configuration is extended with clearCheckSums to allow
to clear all checksums in the current changelog, so they will be
recalculated upon the next update.

See gh-20417
5 years ago
Andy Wilkinson 4fd8f376dc Merge branch '2.2.x'
Closes gh-20503
5 years ago
Andy Wilkinson 9fbb664db6 Avoid eager init when evaluating DevToolsDataSourceCondition
Previously, DevToolsDataSourceCondition called
getBeanNamesForType(Class) which could trigger unwanted initialization
of lazy init singletons and objects created by FactoryBeans.

This commit updates DevToolsDataSourceCondition to prohibit eager
init when getting the names of the beans of a particular type.

Fixes gh-20430
5 years ago
Andy Wilkinson 2f92261f97 Merge branch '2.2.x'
Closes gh-20502
5 years ago
Andy Wilkinson e937b2e0cd Merge branch '2.1.x' into 2.2.x
Closes gh-20501
5 years ago
Andy Wilkinson f251772e17 Fix behaviour of DependencyCustomizer ifAllResourcesPresent
Previously, DependencyCustomizer's ifAllResourcesPresent method
would return a customizer that added modules if any of the resources
were present. This commit corrects this behaviours so that modules are
only added if all resources are present.

Fixes gh-20418
5 years ago
Johnny Lim 8526e66939 Polish
See gh-20498
5 years ago
Stephane Nicoll 9370f21221 Upgrade to Spring Data Neumann-M4
Closes gh-20241
5 years ago
Andy Wilkinson 899efc9eba Merge branch '2.2.x'
The fix was applied as part of 308e1d36. This commit merges forwards
the test that was added in 2.1.x and 2.2.x.

Fixes gh-20386 in 2.2.0.M3.
5 years ago
Andy Wilkinson e1ce21c3a5 Merge branch '2.1.x' into 2.2.x
Closes gh-20499
5 years ago
Andy Wilkinson 2b2113714d Use getTomcatWebServer to create TomcatWebServer instance
TomcatReactiveWebServerFactory's getTomcatWebServer is described as
being a hook point the can be overrideden to return a different
TomcatWebServer or to apply additional processing to the Tomcat
server. Previously, this did not work as the method was not called
to create the TomcatWebServer instance. Instead, TomcatWebServer was
instantiated and returned directly.

This commit updates TomcatReactiveWebServerFactory to call
getTomcatWebServer to create the TomcatWebServer instance. A test
has also been added to verify that the method is now used.

Fixes gh-20386
5 years ago
Andy Wilkinson 4d371f0d88 Merge branch '2.2.x'
Closes gh-20491
5 years ago
Florian Dreier 76451d47b7 Update versiion of git-properties plugin shown in the docs
See gh-20436
5 years ago
Andy Wilkinson c917b61484 Reinstate leading / in default value for spring.liquibase.change-log
Unfortunately, while redundant for new applications, removing the
leading slash adversely affected existing application upon upgrades as
it caused Liquibase to re-apply every change log.

Closes gh-20177
5 years ago
dreis2211 589213daab Improve unused exclusion detection and remove those that are unused
See gh-20472
5 years ago
Andy Wilkinson e2518917f4 Tolerate different connection failure exception thrown on Java 11+
See gh-4657
5 years ago
Andy Wilkinson 29c6b9da5c Upgrade to Postgresql 42.2.11
Closes gh-20488
5 years ago
Andy Wilkinson c5674d80d2 Upgrade to Maven Source Plugin 3.2.1
Closes gh-20487
5 years ago
Andy Wilkinson 5117a6ac6f Upgrade to Maven Shade Plugin 3.2.2
Closes gh-20486
5 years ago
Andy Wilkinson d29ca237b5 Upgrade to Flatten Maven Plugin 1.2.1
Closes gh-20485
5 years ago
Andy Wilkinson 3fa6f04701 Upgrade to Build Helper Maven Plugin 3.1.0
Closes gh-20484
5 years ago
Andy Wilkinson de59586170 Reinstate spring-boot-dependencies' exclusion of jcl-over-slf4j
Closes gh-20441
5 years ago
Andy Wilkinson 8282c1b897 Upgrade to Spring Security 5.3.0.RELEASE
Closes gh-20482
5 years ago
Andy Wilkinson d50ac8d086 Upgrade to Reactor Bom Dysprosium-SR5
Closes gh-20481
5 years ago
Andy Wilkinson 156a67c640 Upgrade to Netty 4.1.47.Final
Closes gh-20480
5 years ago
Andy Wilkinson 6f1218494a Upgrade to Kotlin Coroutines 1.3.4
Closes gh-20479
5 years ago
Andy Wilkinson 3dc5a4e38f Upgrade to Jetty 9.4.27.v20200227
Closes gh-20476
5 years ago
Andy Wilkinson 849b23f71d Upgrade to Jersey 2.30.1
Closes gh-20475
5 years ago
Andy Wilkinson 2ec99e7b1c Upgrade to Jackson Bom 2.10.3
Closes gh-20474
5 years ago
Andy Wilkinson fe4297086b Upgrade to Dropwizard Metrics 4.1.5
Closes gh-20473
5 years ago
Andy Wilkinson 4a0b8bb5ba Start using Cassandra Driver's bom
Fixes gh-20441
5 years ago
Andy Wilkinson b63a7c4631 Upgrade to XmlUnit2 2.6.4
Closes gh-20471
5 years ago
Andy Wilkinson d8ce02e667 Upgrade to WebJars Locator Core 0.44
Closes gh-20470
5 years ago
Andy Wilkinson 485498c5ac Upgrade to Spring Kafka 2.4.3.RELEASE
Closes gh-20469
5 years ago
Andy Wilkinson 22fa5d257a Upgrade to Spring AMQP 2.2.5.RELEASE
Closes gh-20468
5 years ago
Andy Wilkinson 6087fd6b51 Upgrade to SnakeYAML 1.26
Closes gh-20467
5 years ago
Andy Wilkinson 662c08acd5 Upgrade to SendGrid 4.4.5
Closes gh-20466
5 years ago
Andy Wilkinson 97dd978a91 Upgrade to Selenium HtmlUnit 2.38.0
Closes gh-20465
5 years ago
Andy Wilkinson 2620be1e0f Upgrade to RxJava2 2.2.18
Closes gh-20464
5 years ago
Andy Wilkinson 742f584d60 Upgrade to OkHttp3 3.14.7
Closes gh-20463
5 years ago
Andy Wilkinson 3d435df37b Upgrade to Netty tcNative 2.0.29.Final
Closes gh-20462
5 years ago
Andy Wilkinson 2fa35fbcbc Upgrade to Neo4j OGM 3.2.9
Closes gh-20461
5 years ago
Andy Wilkinson 77ad8d3a4f Upgrade to MongoDB 4.0.0
Closes gh-20460
5 years ago
Andy Wilkinson c399323ac4 Upgrade to Mockito 3.3.0
Closes gh-20459
5 years ago
Andy Wilkinson ad1ef31977 Upgrade to Log4j2 2.13.1
Closes gh-20458
5 years ago
Andy Wilkinson fa68cc4ee5 Upgrade to Liquibase 3.8.7
Closes gh-20457
5 years ago
Andy Wilkinson f31e589b07 Upgrade to jOOQ 3.13.1
Closes gh-20456
5 years ago
Andy Wilkinson 02ae6458f7 Upgrade to Jetty Reactive HTTPClient 1.1.2
Closes gh-20455
5 years ago
Andy Wilkinson 295f063463 Upgrade to Janino 3.1.1
Closes gh-20454
5 years ago
Andy Wilkinson a45cb3d712 Upgrade to Jakarta XML WS 2.3.3
Closes gh-20453
5 years ago
Andy Wilkinson f910fd8ac8 Upgrade to Jakarta XML Bind 2.3.3
Closes gh-20452
5 years ago
Andy Wilkinson e61dcc38d7 Upgrade to Jakarta Activation 1.2.2
Closes gh-20451
5 years ago
Andy Wilkinson 911a1912f6 Upgrade to Infinispan 10.1.3.Final
Closes gh-20450
5 years ago
Andy Wilkinson 8ac97d6d3e Upgrade to HttpClient 4.5.12
Closes gh-20449
5 years ago
Andy Wilkinson ee3ff3e094 Upgrade to HtmlUnit 2.38.0
Closes gh-20448
5 years ago
Andy Wilkinson 3251c9d2b0 Upgrade to Hibernate 5.4.12.Final
Closes gh-20447
5 years ago
Andy Wilkinson 2a8136b56f Upgrade to FreeMarker 2.3.30
Closes gh-20446
5 years ago
Andy Wilkinson d2ebd77861 Upgrade to Flyway 6.3.0
Closes gh-20445
5 years ago
Andy Wilkinson 0cd8197ebf Upgrade to Couchbase Client 2.7.13
Closes gh-20444
5 years ago
Andy Wilkinson 7971bd50ba Upgrade to Cassandra Driver 4.5.0
Closes gh-20443
5 years ago
Andy Wilkinson 707fb929a2 Upgrade to Byte Buddy 1.10.8
Closes gh-20442
5 years ago
Andy Wilkinson 19cc388861 Test Tomcat's handling of a request on an idle connection
See gh-4657
5 years ago
Andy Wilkinson b8cb61bbe0 Align embedded Jetty's graceful shutdown behaviour with standalone
Standalone Jetty will, by default, include a Connection: close header
in all responses once graceful shutdown has begun. Previously, the
way in which we were shutting Jetty down did not cause this to happen.

This commit updates JettyGracefulShutdown to shut down each connector.
This causes Jetty to send the Connection: close header, aligning its
behaviour more closely with what it does when used standalone. The
tests have also been updated to verify this behaviour and to ensure
that the correct port is used for requests even once the connector is
no longer bound and the web server no longer knows its ephemeral port.

See gh-4657
5 years ago
Andy Wilkinson 5bb66e1b85 Try to make reactive Jetty connect after shutdown test more robust
See gh-4657
5 years ago
Madhura Bhave fd50a6755f Merge branch '2.2.x'
Closes gh-20433
5 years ago
Madhura Bhave a27e145f03 Merge branch '2.1.x' into 2.2.x
Closes gh-20432
5 years ago
Madhura Bhave 06d870bdd0 Do not wrap CF JSON Keys containing special characters
This reverts commit 6828a15d31.
The commit has been reverted as it breaks backwards compatiblity.

Fixes gh-20343
5 years ago
Andy Wilkinson 6ec3865ed0 Polish spelling of elapsed
See gh-4657
5 years ago
Andy Wilkinson da06b38117 Polish
See gh-4657
5 years ago
Andy Wilkinson 308e1d3675 Add support for gracefully shutting down the web server
This commit adds support for gracefully shutting down the embedded
web server. When a grace period is configured
(server.shutdown.grace-period), upon shutdown, the web server will no
longer permit new requests and will wait for up to the grace period
for active requests to complete.

Closes gh-4657
5 years ago