Commit Graph

8390 Commits (47a68650c906d902a10ead20cc3510e25fed12ea)

Author SHA1 Message Date
Madhura Bhave 19b7dc8e4f Merge branch '2.2.x'
Closes gh-20114
5 years ago
Madhura Bhave d485708f68 Fix 404 when composite contributor is added to a group
Fixes gh-19974
5 years ago
Madhura Bhave ec42dcd173 Fix typo 5 years ago
dreis2211 aa0360e1ba Fix some deprecation warnings
See gh-20108
5 years ago
Stephane Nicoll ddcf5966bb Disable Spring Data Neo4j's open session in view by default
Closes gh-20012
5 years ago
Stephane Nicoll 77bdf992ec Polish "Create HazelCastClient if necessary"
See gh-20109
5 years ago
Dmytro Nosan 67dd9ad537 Create HazelCastClient if necessary
This commit makes sure to create a HazelcastClient if an instance name
is provided in configuration and if no such client already exists. This
harmonizes the behaviour with of the server counter-part.

See gh-20109
5 years ago
Stephane Nicoll e8b97dbc75 Start building against Spring Kafka 2.4.2 snapshots
See gh-20107
5 years ago
Stephane Nicoll cf06eec174 Start building against Spring AMQP 2.2.4 snapshots
See gh-20105
5 years ago
Stephane Nicoll a053d207d6 Start building against Spring Integration 5.3 M2 snapshots
See gh-20104
5 years ago
Stephane Nicoll 9d60afdbc4 Merge branch '2.2.x'
Closes gh-20100
5 years ago
Stephane Nicoll 76c21571b4 Remove unnecessary dependency on sendgrid
Closes gh-20099
5 years ago
Stephane Nicoll 2af93b5297 Upgrade to Undertow 2.0.29.Final
Closes gh-20096
5 years ago
Stephane Nicoll 5e02227b02 Upgrade to UnboundID LDAPSDK 4.0.14
Closes gh-20095
5 years ago
Stephane Nicoll 577c8812c5 Upgrade to Spring Retry 1.2.5.RELEASE
Closes gh-20094
5 years ago
Stephane Nicoll cba97d5f3a Upgrade to SLF4J 1.7.30
Closes gh-20093
5 years ago
Stephane Nicoll 9cf448b754 Upgrade to Selenium HtmlUnit 2.37.0
Closes gh-20091
5 years ago
Stephane Nicoll 4c1a1b0e0c Upgrade to RxJava2 2.2.17
Closes gh-20090
5 years ago
Stephane Nicoll 4296dbb792 Upgrade to Prometheus PushGateway 0.8.1
Closes gh-20089
5 years ago
Stephane Nicoll 31973ce43d Upgrade to Postgresql 42.2.10
Closes gh-20088
5 years ago
Stephane Nicoll e63d90b791 Upgrade to Pooled JMS 1.1.1
Closes gh-20087
5 years ago
Stephane Nicoll e3f18a09e4 Upgrade to OkHttp3 3.14.6
Closes gh-20086
5 years ago
Stephane Nicoll 42e082c2e2 Upgrade to Neo4j OGM 3.2.8
Closes gh-20085
5 years ago
Stephane Nicoll 475cbf39e4 Upgrade to MySQL 8.0.19
Closes gh-20084
5 years ago
Stephane Nicoll d32b9afdd9 Upgrade to Mockito 3.2.4
Closes gh-20083
5 years ago
Stephane Nicoll c50d600bd8 Upgrade to MariaDB 2.5.4
Closes gh-20082
5 years ago
Stephane Nicoll 4efdea5fb8 Upgrade to Lombok 1.18.12
Closes gh-20081
5 years ago
Stephane Nicoll 7c46b3dd52 Upgrade to Liquibase 3.8.5
Closes gh-20080
5 years ago
Stephane Nicoll 7dccc10803 Upgrade to jOOQ 3.12.4
Closes gh-20079
5 years ago
Stephane Nicoll 2b99345733 Upgrade to Johnzon 1.2.3
Closes gh-20078
5 years ago
Stephane Nicoll 3e0515da2f Upgrade to Jetty Reactive HTTPClient 1.1.1
Closes gh-20077
5 years ago
Stephane Nicoll acbdf0cd2f Upgrade to Jetty EL 8.5.49
Closes gh-20076
5 years ago
Stephane Nicoll e0cd00e0d3 Upgrade to HttpCore 4.4.13
Closes gh-20075
5 years ago
Stephane Nicoll 7996a32129 Upgrade to HttpClient 4.5.11
Closes gh-20074
5 years ago
Stephane Nicoll 616a33367f Upgrade to HtmlUnit 2.37.0
Closes gh-20073
5 years ago
Stephane Nicoll 95c4f1b0c0 Upgrade to HikariCP 3.4.2
Closes gh-20072
5 years ago
Stephane Nicoll f0d2d320c2 Upgrade to Hibernate Validator 6.1.2.Final
Closes gh-20071
5 years ago
Stephane Nicoll da7dbf085e Upgrade to Hibernate 5.4.10.Final
Closes gh-20070
5 years ago
Stephane Nicoll 466dd66c8f Upgrade to Hazelcast 3.12.6
Closes gh-20069
5 years ago
Stephane Nicoll 93d34781fc Upgrade to Groovy 2.5.9
Closes gh-20068
5 years ago
Stephane Nicoll a7249d20d2 Upgrade to Flyway 6.2.2
Closes gh-20067
5 years ago
Stephane Nicoll ad8fa8f6a0 Upgrade to Elasticsearch 7.5.2
Closes gh-20066
5 years ago
Stephane Nicoll f8087a6f29 Upgrade to Couchbase Client 2.7.12
Closes gh-20065
5 years ago
Stephane Nicoll f0ac9e1389 Upgrade to Caffeine 2.8.1
Closes gh-20063
5 years ago
Stephane Nicoll f883a6cf26 Upgrade to Byte Buddy 1.10.7
Closes gh-20062
5 years ago
Stephane Nicoll 730683ce26 Upgrade to Awaitility 4.0.2
Closes gh-20061
5 years ago
Stephane Nicoll c5d38e0b5f Upgrade to AppEngine SDK 1.9.78
Closes gh-20060
5 years ago
Stephane Nicoll aa56a6f647 Add missing mockito dependency
Closes gh-20097
5 years ago
Stephane Nicoll 6e3636d5ff Merge branch '2.2.x'
Closes gh-20059
5 years ago
Stephane Nicoll ddb5cc3f99 Polish "Make Kubernetes detection slightly more efficient"
See gh-19002
5 years ago
med-amine.dahmen aee22bfb51 Make Kubernetes detection slightly more efficient
See gh-19002
5 years ago
Madhura Bhave eeab9233cc Merge branch '2.2.x'
Closes gh-20056
5 years ago
Madhura Bhave acc453db4a Polish contribution
See gh-19999
5 years ago
cbono badc83d368 Add 'uris', 'address' and 'addresses' to keys to sanitize.
See gh-19999
5 years ago
Scott Frederick 12c640e133 Upgrade default image builder version
This commit upgrades the default CNB builder image from
cloudfoundry/cnb:0.0.43-bionic to cloudfoundry/cnb:0.0.53-bionic.
It also adds integration tests for the Maven and Gradle plugins
to verify both versions are supported.
5 years ago
Scott Frederick d07062652e Add support for CNB platform API v0.2
Cloud Native Buildpacks platform API version 0.2 introduced
two breaking changes: the order of invoking the restore and analyze
phases was reversed, and the cache phase was removed in favor of
distributing caching across other phases.

This commit adds support for Cloud Native Buildpacks builders that
implement platform API version 0.2, while maintaining compatibility
with builders that implement Lifecycle version platform API
version 0.1.

Closes gh-19829
5 years ago
Stephane Nicoll f5d7e77550 Polish "Use Dropwizard metrics BOM to manage dependencies"
See gh-20032
5 years ago
dreis2211 68bff6705e Use Dropwizard metrics BOM to manage dependencies
See gh-20032
5 years ago
dreis2211 20251ccae4 Remove superfluous useJUnit()
See gh-20035
5 years ago
Johnny Lim 6818279751 Fix typo
See gh-20049
5 years ago
Russell Scheerer 7f23b9dc16 Fix variable reference in maven-shade-plugin configuration
See gh-20052
5 years ago
dreis2211 268f696d19 Add missing deployed plugin to modules
This commit registers 'org.springframework.boot.deployed' to
spring-boot-configuration-metadata and spring-boot-properties-migrator
to make sure they are deployed as expected.

See gh-20051
5 years ago
Andy Wilkinson 7a9462bd37 Upgrade to Spring Security 5.3.0.RC1
Closes gh-20046
5 years ago
Andy Wilkinson bc3ee5b232 Upgrade to RSocket 1.0.0-RC6
Closes gh-20048
5 years ago
Andy Wilkinson ab512edb96 Upgrade to Spring Session Dragonfruit-M1
Closes gh-20045
5 years ago
Andy Wilkinson 5c2b28cb57 Merge branch '2.2.x'
Closes gh-20043
5 years ago
Andy Wilkinson 45fd60337d Merge branch '2.1.x' into 2.2.x
Closes gh-20042
5 years ago
Andy Wilkinson b6a408ae77 Upgrade to Spring Asciidoctor Extensions 0.4.0.RELEASE
Closes gh-20041
5 years ago
Madhura Bhave 9382cd4db1 Polish wildcard location documentation 5 years ago
Madhura Bhave 3f9d0058ad Document new Docker-related features
Closes gh-19868
5 years ago
Scott Frederick 56c5a3de6d Disambiguate a class in RabbitMQ CLI sample
Fixes gh-20003
5 years ago
Stephane Nicoll 1c87325420 Merge branch '2.2.x' 5 years ago
Stephane Nicoll d85bdfb23c Fix checkstyle violation 5 years ago
Stephane Nicoll 9aef2bde77 Merge branch '2.2.x'
Closes gh-20030
5 years ago
Stephane Nicoll 10643b7702 Polish "Stop time web metrics when autotime is disabled"
See gh-19981
5 years ago
babjo e323e05eea Stop time web metrics when autotime is disabled
See gh-19981
5 years ago
Stephane Nicoll 6213ff6aab Merge branch '2.2.x'
Closes gh-20029
5 years ago
Stephane Nicoll fa239a0628 Merge branch '2.1.x' into 2.2.x
Closes gh-20028
5 years ago
Stephane Nicoll 12b644d73c Polish contribution
See gh-19901
5 years ago
Dmytro Nosan aead3a7c44 Handle message of @ResponseStatus-annotated exception with WebFlux
See gh-19901
5 years ago
Madhura Bhave 0a377647ca Import OAuth2 auto-configurations in web slice tests
Fixes gh-19823
5 years ago
Scott Frederick 60f5bb1636 Remove health actuator code deprecated in 2.2
This partially re-applies the deprecation removal from commit
df1837a16b,
without removing CompositeHealthIndicator, HealthAggregator, and related
configuration that is required by Spring Cloud.
5 years ago
Madhura Bhave e64a145ef0 Add support for wildcard locations for properties and YAML files
Closes gh-19909
5 years ago
Scott Frederick de1a26cf35 Revert "Remove deprecated HealthIndicator and HealthAggregator 2.2 code"
This reverts commit df1837a16b.
5 years ago
Stephane Nicoll b5e23e7405 Update copyright year of changed files
See gh-20020
5 years ago
Johnny Lim b67ece48e4 Polish
See gh-20020
5 years ago
dreis2211 e4a95a8047 Upgrade to Ivy 2.5.0
See gh-20022
5 years ago
dreis2211 2d9902f10e Fix link to Spring Integration Graph documentation
See gh-19992
5 years ago
Stephane Nicoll 90e3d88793 Fix link to Spring Integration Graph documentation
Closes gh-20023
5 years ago
Stephane Nicoll 5833d2c5e8 Fix Embedded Mongo classpath check
This commit changes the classpath check condition to verify that the
core module of the MongoDB driver is present. Previously, we were only
checking for the presence of the sync driver, making embedded support
unavailable with the reactive variant.

Closes gh-19960
5 years ago
Stephane Nicoll c4daff7225 Polish "Upgrade to MongoDB Java Driver 4.0 beta1"
See gh-19960
5 years ago
Christoph Strobl d2d6dbdc00 Upgrade to MongoDB Java Driver 4.0 beta1
See gh-19960
5 years ago
dreis2211 326092b69e Upgrade to Ant 1.10.7
See gh-20002
5 years ago
Stephane Nicoll 52659b1df4 Merge branch '2.2.x'
Closes gh-20013
5 years ago
Johnny Lim 6ef288f45b Polish samples in doc
See gh-20004
5 years ago
dreis2211 56df70b0e7 Use Spring 5 module of Jersey
See gh-20009
5 years ago
Andy Wilkinson bca98c5126 Use a RegularFileProperty to configure BootBuildImage's input jar
Closes gh-20010
5 years ago
Johnny Lim 0ddf8be151 Polish
See gh-20001
5 years ago
Stephane Nicoll 9b79208b60 Upgrade copyright date
See gh-19995
5 years ago
Johnny Lim e6d5f5a271 Polish
See gh-19995
5 years ago
Scott Frederick afb67887da Restore deprecated class required by Spring Cloud
See gh-19860
5 years ago
Phillip Webb cbacab5e26 Polish 5 years ago
Phillip Webb 1eee83a07e Update copyright year of changed files 5 years ago
Phillip Webb 234c5033d4 Polish whitespace 5 years ago
Scott Frederick 653cabe2ce Add documentation for gradle bootBuildImage task 5 years ago
Madhura Bhave bceed1305f Jar files added after build time should be added to classpath
Fixes gh-19973
5 years ago
Scott Frederick b281af0b9b Remove adding of existing layers to EphemeralBuilder
Layers were being added to the EphemeralBuilder each time one was
created, but those layers already existed in the base builder image.

Closes gh-19832
5 years ago
Andy Wilkinson 7b0d1eaffc Test the Gradle Plugin against Gradle 6.1.1
Closes gh-19912
5 years ago
Andy Wilkinson 886e7ba38c Merge branch '2.2.x'
Closes gh-19989
5 years ago
Andy Wilkinson a37c170376 Try to make CouchbaseAutoConfigurationIntegrationTests less flakey
Closes gh-19932
5 years ago
Andy Wilkinson 2725264be1 Polishing formatting of DockerApi 5 years ago
Andy Wilkinson 6db5ca97d3 Sort names alphabetically in metrics list response
Closes gh-19934
5 years ago
Andy Wilkinson 28442b5ca5 Lower the minimum required Docker API version to 1.24
Closes gh-19945
5 years ago
Andy Wilkinson 54b3f480b4 Use posix long names when creating tar archive for image building
Fixes gh-19964
5 years ago
Stephane Nicoll bae1d8d780 Polish "Use new AssertJ duration assertions"
See gh-19985
5 years ago
dreis2211 fac6f08ca3 Use new AssertJ duration assertions
See gh-19985
5 years ago
dreis2211 7de3712e56 Upgrade to AssertJ 3.15.0
See gh-19985
5 years ago
Scott Frederick c6a6024062 Stop image building on error from builder
Previously, the image builder used by the build tool plugins ignored
errors from lifecycle phases and continued with subsequent phases.

This commit inspects the status of the builder container after each
lifecycle phase and aborts the image building process if the exit
status of the container after any phase is non-zero.

Fixes #19949
5 years ago
Madhura Bhave dc542b29d8 Merge branch '2.2.x'
Closes gh-19977
5 years ago
Johnny Lim f3aed11714 Update test name in WebFluxTagsTests
See gh-19976
5 years ago
Stephane Nicoll b6c5c3a113 Polish
See gh-19802
5 years ago
Andy Wilkinson 9882e749e9 Merge branch '2.2.x'
Closes gh-19971
5 years ago
Andy Wilkinson 553311c690 Merge branch '2.1.x' into 2.2.x
Closes gh-19970
5 years ago
Andy Wilkinson 140f5e7baf Unwraper handler to find ContextHandler when logging context path
Previously, only the top-level handlers were examined to find the
ContextHandlers and log the context path. If those handlers had
been wrapped, this prevented the ContextHandlers from being found
and an empty string was always logged.

When finding the context path, this commit unwraps the handler held
by a HandlerWrapper until the ContextHandler is found.

Fixes gh-19969
5 years ago
Stephane Nicoll eb852f1ad6 Disable bean overriding by default in ApplicationContextRunner
For consistency with SpringApplication, this commit disables bean
overriding by default in ApplicationContextRunner. Bean overriding can
be enabled again using withAllowBeanDefinitionOverriding.

Closes gh-18019
5 years ago
dreis2211 d8e2349e47 Use Supplier variants of Assert
See gh-19864
5 years ago
Stephane Nicoll 9fbaf7611b Merge branch '2.2.x'
Closes gh-19966
5 years ago
Stephane Nicoll b420bdb3ac Merge branch '2.1.x' into 2.2.x
Closes gh-19965
5 years ago
dreis2211 db2bacc62a Fix Gradle plugin documentation links
See gh-19961
5 years ago
Stephane Nicoll 0516520b7e Polish "Fix scope of CqlSessionBuilder bean"
See gh-19899
5 years ago
Dmytro Nosan c8105413b9 Fix scope of CqlSessionBuilder bean
See gh-19899
5 years ago
Stephane Nicoll 2a01c0262b Merge branch '2.2.x'
Closes gh-19958
5 years ago
Stephane Nicoll 9d0918bb2e Merge branch '2.1.x' into 2.2.x
Closes gh-19957
5 years ago
Pascal Verdage 930ec51968 Fix typo
See gh-19956
5 years ago
dreis2211 741a4f4b2b Fix links in Maven Plugin documentation
See gh-19952
5 years ago
wonwoo 8703c04475 Register Stackdriver auto-config in `META-INF/spring.factories`
See gh-19955
5 years ago
Stephane Nicoll 83b38599b1 Apply consistent timeout for Cassandra integration tests
Closes gh-19802
5 years ago
Madhura Bhave 84ea3d359b Increase timeout for Cassandra tests
Closes gh-19802
5 years ago
Stephane Nicoll 5410148f79 Improve documentation of 'image' parameter of Maven Plugin
Closes gh-19950
5 years ago
Stephane Nicoll 11c5fba355 Remove unnecessary execution-specific configuration in documentation
This documentation moves the specific `build-image` execution
configuration example of the Maven plugin documentation to the general
plugin configuration. This makes sure that it works in most cases and
an execution-specific configuration is not required here anyway.

Closes gh-19946
5 years ago
Stephane Nicoll ed14173865 Polish "Upgrade to Flyway 6.2.0"
See gh-19894
5 years ago
Kedar Joshi 0ae075efd5 Upgrade to Flyway 6.2.0
See gh-19894
5 years ago
Stephane Nicoll 07a1783572 Polish "Introduce appendix section with version properties"
See gh-19898
5 years ago
dreis2211 65394582f6 Introduce appendix section with version properties
With the introduction of Gradle we lost the list of version properties
that were previously in the spring-boot-dependencies POM and were also
linked inside the documentation. This commit introduces an appendix
section in the docs and links the appropriate places to the new section
to restore discoverability.

See gh-19898
5 years ago
dreis2211 b49e01f67a Fix broken documentation links
See gh-19936
5 years ago
Stephane Nicoll 51f6256035 Merge branch '2.2.x' 5 years ago
Stephane Nicoll 9ca15ee00d Fix broken documentation links
See gh-19936
5 years ago
Stephane Nicoll f0e93f0e1d Migrate Couchbase tests to ApplicationContextRunner 5 years ago
Stephane Nicoll a1e6a20915 Simplify default value for Spring Data Couchbase's typeKey
This commit hard codes the default value so that the annotation
processor picks it up. The default value is tested for consistency so
this is acceptable as providing the default value in the metadata
requires to hard code it anyway.
5 years ago
Andy Wilkinson 63b736d1f0 Fix NPE when waiting for named socket path to become available
Fixes gh-19941
5 years ago
Stephane Nicoll af4fdf0d6d Polish "Add support for Spring Data Couchbase custom type key"
See gh-19789
5 years ago
Grudi Radev d1a44dfacd Add support for Spring Data Couchbase custom type key
See gh-19789
5 years ago
Stephane Nicoll 3290313eb7 Fix Docker socket creation on Windows
Closes gh-19908
5 years ago
Andy Wilkinson 66d4319abd Deprecate refresh(ApplicationContext) and add refresh(ConfigurableAC)
refresh can only ever be called with a ConfigurableApplicationContext
and we want to evolve the refresh API to reflect that. This commit
takes the first step by overloading refresh(ApplicationContext) with
a new refresh(ConfigurationApplicationContext) method and deprecating
refresh(ApplicationContext). Where the call to refresh is made, the
argument is cast to ApplicationContext to ensure that
refresh(ApplicationContext) is called. This ensures that any existing
override of the method is still effective.

Closes gh-18519
5 years ago
Stephane Nicoll d1867c1b8b Merge branch '2.2.x'
Closes gh-19930
5 years ago
dreis2211 56ab129077 Upgrade to Testcontainers 1.12.5
See gh-19902
5 years ago
dreis2211 d75de39456 Upgrade to JUnit Jupiter 5.6.0
See gh-19907
5 years ago
Andy Wilkinson 4130638702 Upgrade to SQLite JDBC 3.30.1
Closes gh-19925
5 years ago
Andy Wilkinson 6d9d4fc531 Upgrade to Solr 8.4.1
Closes gh-19924
5 years ago
Andy Wilkinson f4d27f90ba Upgrade to Rabbit AMQP Client 5.8.0
Closes gh-19923
5 years ago
Andy Wilkinson d477084a1e Upgrade to MongoDB 3.12.1
Closes gh-19922
5 years ago
Andy Wilkinson b0831d0b54 Upgrade to Mongo Driver ReactiveStreams 1.13.0
Closes gh-19921
5 years ago
Andy Wilkinson ccabfe7b8c Upgrade to Log4j2 2.13.0
Closes gh-19920
5 years ago
Andy Wilkinson dcbdd0afba Upgrade to JUnit 4.13
Closes gh-19919
5 years ago
Andy Wilkinson 128127820b Upgrade to Jedis 3.2.0
Closes gh-19918
5 years ago
Andy Wilkinson 273dc93e03 Upgrade to InfluxDB Java 2.17
Closes gh-19917
5 years ago
Andy Wilkinson c5ffb25239 Upgrade to Commons Pool2 2.8.0
Closes gh-19916
5 years ago
Andy Wilkinson f7328825ec Upgrade to Commons Codec 1.14
Closes gh-19915
5 years ago
Andy Wilkinson d7e18a714d Upgrade to Artemis 2.11.0
Closes gh-19914
5 years ago
Madhura Bhave 1d62debf11 Fix typo 5 years ago
Stephane Nicoll 0bd03fa278 Fix xml syntax in example
Closes gh-19906
5 years ago
dreis2211 42e34673a6 Remove obsolete files
See gh-19896
5 years ago
Stephane Nicoll cb7e8cdbef Merge branch '2.2.x'
Closes gh-19904
5 years ago
Stephane Nicoll 99330325c0 Merge branch '2.1.x' into 2.2.x
Closes gh-19903
5 years ago
Stephane Nicoll ddcc52a085 Upgrade to Micrometer 1.3.3
Closes gh-19645
5 years ago
Stephane Nicoll 7fd8cce465 Polish "Close TomcatMetrics on shutdown for cleanup"
See gh-19880
5 years ago
Johnny Lim 51dfd528bd Close TomcatMetrics on shutdown for cleanup
See micrometer-metrics/micrometer#1424
See gh-19880
5 years ago
Stephane Nicoll c3d0b9c43a Upgrade to Micrometer 1.1.10
Closes gh-19639
5 years ago
dreis2211 d84ca1149c Test the Gradle Plugin against Gradle 6.1
See gh-19776
5 years ago
Stephane Nicoll 142a0cbb85 Fix warnings in spring-boot-autoconfigure's Kotlin test code
Closes gh-19877
5 years ago
Stephane Nicoll eb9b1972cf Adapt Cassandra documentation of v4 driver upgrade
See gh-18621
5 years ago
Stephane Nicoll 0a6fa64ff9 Fix default value for spring.data.couchbase.contact-points
See gh-18621
5 years ago
Stephane Nicoll df7b3839a1 Add local-datacenter property for Cassandra
The Cassandra v4 driver does not longer have automatic local DC inference
from contact points. As a result, the "local-datacenter" property must be
set with the default load balancing policy and the contact points must
be of that data center.

This commit adds a new property for the local datacenter so that it can
be specified without the use of a customizer.

Closes gh-19779
5 years ago
Andy Wilkinson cbee16318f Fix version references in Maven Plugin's reference documentation
Closes gh-19878
5 years ago
Stephane Nicoll 331ebe90e0 Restore @since on build-image parameters 5 years ago
Stephane Nicoll 63019ab3f1 Add documentation for Maven plugin's build-image support
Closes gh-19830
5 years ago
Stephane Nicoll 6df5e7af4f Add integration tests for Maven plugin's build-image support
See gh-19830
5 years ago
Andy Wilkinson 0a9fe65443 Use line endings on all OSs when writing image config JSON
Previously \r\n was used on Windows and \n was used on other
platforms. This resulted in different JSON content being written to
the archive. As the config's entry name is the SHA-256 hash of its
content, it also resulted in the entry name being different.

This commit updates the JSON that's written into the archive to use
\n line endings, irrespective of the OS on which the image is being
built.

See gh-19828
5 years ago
Andy Wilkinson a0b4cdee44 Make line ending expectations in TotalProgressBarTests OS-independent
See gh-19828
5 years ago
Andy Wilkinson 1d396abec5 Fix bootBuildImage integration tests on Java 13
We build with Java 8, 11, and 13 without specifying target
compatibility for the bytecode of the app that's placed in the image.
The built image uses Java 11 and when the app is built with Java 13
it fails to start as the Java 11 VM can't read that Java 13 bytecode.

This commit configures the app that's placed in the image to be built
with target compatibility of 1.8. This allows it to be compiled with
all version of Java with which we build and to also be compatible
with the JVM that's in the image.

See gh-19831
5 years ago
Andy Wilkinson fccc241ded Remove unnecessary dependency from HATEOAS starter
Closes gh-19874
5 years ago
Stephane Nicoll 105db66553 Polish 5 years ago
Stephane Nicoll e044817fe7 Migrate remaining use of ClassLoader.loadClass to Class.forName
Closes gh-19824
5 years ago
Andy Wilkinson 01a0a54f78 Include layertools in layered jars build with Gradle
Closes gh-19867
5 years ago
Andy Wilkinson 288f5ceaee Fix zip compression of libs in layered jars
Closes gh-19792
5 years ago
Andy Wilkinson 0bd0b2a6c0 Add support for building OCI images using the Gradle plugin
Closes gh-19831
5 years ago
Andy Wilkinson bc452bc094 Polish BootJarTests
See gh-19847
See gh-19792
5 years ago
Stephane Nicoll 95be419527 Use Class.forName rather than ClassLoader.loadClass
This commit changes uses of ClassLoader.loadClass to Class.forName for
consistency with what was initiated in #19342 and better compatibility
with GraalVM.

Closes gh-19824
5 years ago
Scott Frederick 8f30cf916f Upgrade to Kafka 2.4.0 and Spring Kafka 2.4.1
See gh-19764
5 years ago
Stephane Nicoll c80e9f7fc4 Upgrade to Spring Integration 5.3.0.M1
Closes gh-19650
5 years ago
Stephane Nicoll 2b06a423d0 Merge branch '2.2.x'
Closes gh-19873
5 years ago
Stephane Nicoll c77d4c07d7 Merge branch '2.1.x' into 2.2.x
Closes gh-19872
5 years ago
Stephane Nicoll 650e55c242 Polish "Encourage use of SpringBootApplication"
See gh-19855
5 years ago
protyay 3131616c5a Encourage use of SpringBootApplication
See gh-19855
5 years ago
Phillip Webb b5b4a02c61 Automatically add jarmode jars when packaging
Update the `Packager` to automatically add the layertools jarmode jar
when producing a layered jar.

Closes gh-19865
5 years ago
Phillip Webb 2b83edeb27 Fix jarmode support in unexploded jars
Update `LaunchedURLClassLoader` to ensure that the `JarModeLauncher`
is created in the correct classloader.

Prior to this commit the launcher was created by the application
classloader and did not have access to any of the required
`org.springframework` classes.

See gh-19848
5 years ago
Phillip Webb 57db621b70 Polish 5 years ago
Phillip Webb 77bbe089b2 Update copyright year of changed files 5 years ago
Phillip Webb 71ce212f7f Rename spring-boot-layertools
Rename `spring-boot-layertools` to `spring-boot-jarmode-layertools`.

Closes gh-19853
5 years ago
Madhura Bhave 13f7db2d8c Write classpath index file from Gradle plugin
Closes gh-19847
5 years ago
Scott Frederick 462f5635d6 Reinstate JobLauncherCommandLineRunner
This class was mistakenly marked as deprecated in 2.2.0 instead of deprecated
in 2.3.0. This resulted in the class being deleted as part of the 2.3.0
cleanup.

Putting it back in place now with the correct deprecation noted.

Closes gh-19861
5 years ago
Phillip Webb e0013454b5 Use parentheses when declaring dependencies
Update all dependencies declarations to use the form `scope(reference)`
rather than `scope reference`.

Prior to this commit we declared dependencies without parentheses unless
we were forced to add them due to an `exclude`.
5 years ago
Phillip Webb 0209cd3e4c Polish quote form used in Gradle scripts
Replace Gradle single quote strings with the double quote form
whenever possible. The change helps to being consistency to the
dependencies section where mostly single quotes were used, but
occasionally double quotes were required due to `${}` references.
5 years ago
Scott Frederick ed6fbc6bec Remove Spring Cloud Connectors auto-config/starter
The Spring Cloud Connectors project has been deprecated in favor of the
Java CFEnv project. The Boot auto-configuration and starter that support
Connectors were deprecated in Boot 2.2.

This commit removes the Connectors auto-configuration, starter,
and dependency management.

Closes gh-19798
5 years ago
Madhura Bhave df5b0f1163 Add support for layered jars in gradle plugin
Closes gh-19792

Co-authored-by: Andy Wilkinson <awilkinson@pivotal.io>
5 years ago
Scott Frederick 9ff50f903f Default spring.datasource.generate-unique-name to true
This change ensures that each test in a test suite that shares an
application context gets a unique embedded database, to prevent
inconsistent embedded database state between tests.

Closes gh-16747
5 years ago
Phillip Webb 951d0b0fdf Fix exploded jar classloader issues
Fix a bug in `ExplodedURLClassLoader` and merge the code into the
existing `LaunchedURLClassLoader` class. Also polish a few method
names relating to layer support.

See gh-19848
See gh-19767
5 years ago
Phillip Webb e28338d6cd Rename spring-boot-cloudnativebuildpack
Rename the `spring-boot-cloudnativebuildpack` module to
`spring-boot-buildpack-platform` and update the the package
name to `org.springframework.boot.buildpack.platform`.

Closes gh-19851
5 years ago
Scott Frederick 288889685d Change default BootstrapMode for JPA repositories
Change the default `BootstrapMode` for auto-configured `JpaRepositories`
to `BootstrapMode.DEFERRED` to allow the initialization of
`EntityManagerFactory` to be parallelized for increased startup efficiency.

Prior to this change, the default BootstrapMode for all auto-configured
Spring Data repositories was `BootstrapMode.DEFAULT`.

Closes gh-16230
5 years ago
dreis2211 23e87f8266 Treat Java 11+'s NoSuchFileException the same as FileNotFoundException
See gh-19850
5 years ago
Andy Wilkinson adc6444272 Upgrade to Micrometer 1.3.3
Closes gh-19652
5 years ago
Phillip Webb e513fe4666 Add layertools jarmode
Add a new `spring-boot-layertools` module which provides jarmode support
for working with layers. The module works with both classic fat jars,
as well as layered jars.

Closes gh-19849
5 years ago
Phillip Webb 73a42050d6 Add jarmode support to the loader code
Update the `Launcher` class to allow a packaged jar to be  launched in
a different mode. The launcher now checks for a `jarmode` property and
attempts to find a `JarMode` implementation using the standard
`spring.factories` mechanism.

Closes gh-19848
5 years ago
Phillip Webb d5a70688cb Reserve layer names for future use
Update layered jar support so that the name `ext` and any name
starting `springboot` are reserved.

See gh-19767
5 years ago
Phillip Webb 3af4930f75 Add cloudnativebuildpack to dependencies
Update the managed dependencies to include the recently added
`spring-boot-cloudnativebuildpack` module.

See gh-19828
5 years ago
Phillip Webb 7d8f8d47c8 Fix packager code to generate layer index file
Update `Packager` to create the layer index file when repackaging.

Closes gh-19767
5 years ago
Phillip Webb bfd2ca7fd9 Polish Gradle expression references
Expand all expression `$` references to the full `${...}` form.
5 years ago
Andy Wilkinson 89237634c7 Fix classpath used for Gradle Plugin integration tests in Eclipse
See gh-19841
5 years ago
Stephane Nicoll 4d70f58bc8 Polish "Upgrade to Infinispan 10.1.1.Final"
See gh-19790
5 years ago
Scott Frederick 511258f486 Upgrade to Infinispan 10.1.1.Final
See gh-19790
5 years ago
Stephane Nicoll 08967bca3e Merge branch '2.2.x'
Closes gh-19843
5 years ago
Stephane Nicoll 84324c438b Merge branch '2.1.x' into 2.2.x
Closes gh-19842
5 years ago
Stephane Nicoll 34c263a828 Polish actuator dependencies and test resources
This commit removes references of cache infra following the move to
Micrometer. We no longer ships an infinispan specific binder so the
dependency has been removed as well.

Closes gh-19838
5 years ago
Andy Wilkinson 1e72fa202c Rework loader-tools resource generation to work with Buildship
Previously, the generated resources were added as an output to the
main source set. This worked on the command line, but resulted in
the META-INF folder that contains the loader jar not being on the
classpath of downstream projects in Eclipse.

This commit changes loader-tools to add the generated resources
as a srcDir to the main source set. This results in it appearing on
the classpath of other projects in Eclipse that depend on loader-tools
such as the Gradle plugin, thereby allowing its tests to be run in
the IDE as well as on the command line.

Fixes gh-19841
5 years ago
Andy Wilkinson 62a848f1b1 Register JNA's native library integration in LinuxSocketDomain
See gh-19836
5 years ago
dreis2211 991bcf5ce4 Revisit documentation that mentions Gradle "compile" configuration
See gh-19797
5 years ago
Stephane Nicoll d421c63747 Disable integration test on Linux
See gh-19836
5 years ago
Stephane Nicoll ffd7670843 Attempt to make DockerApiIntegrationTests work on Linux 5 years ago
dreis2211 042694bc53 Reinstate running of OutputCaptureRuleTests
See gh-19826
5 years ago
dreis2211 088e79f446 Add UTF-8 encoding to spring-boot-starter-parent POM
See gh-19835
5 years ago
Phillip Webb cb4928ad51 Add build-image support to the maven plugin
Add a new `build-image` goal to the Maven plugin to allow Docker images
to be create via using the cloud native buildpack.

See gh-19830
5 years ago
Phillip Webb 16e6bc89ed Create a new ImagePackager tools class
Pull functionality from `Repackager` into a new `Packager` base class
and develop a variant for Docker image creation. The new `ImagePackager`
class provides a general purpose way to construct jar entries without
being tied to an actual file. This will allow us to link it to a
buildpack and provide application content directly.

Closes gh-19834
5 years ago
Phillip Webb aa1954717c Add cloud native buildpack module
Add a Java implementation of the buildpacks.io specification allowing
projects to be packaged into OCI containers. The `builder` class
provides a Java equivalent of `pack build` command and is based on
the `pack` CLI Go code published at https://github.com/buildpacks/pack.

Closes gh-19828
5 years ago
Andy Wilkinson 29d8b6db5a Merge branch '2.2.x'
Closes gh-19822
5 years ago
Andy Wilkinson f708aace65 Merge branch '2.1.x' into 2.2.x
Fixes gh-19821
5 years ago
Stephane Nicoll 67bba7c64a Merge branch '2.2.x'
Closes gh-19820
5 years ago
Stephane Nicoll 3dba4c8f4e Polish "Document RedisCacheManagerBuilderCustomizer"
See gh-19819
5 years ago
Dmytro Nosan 61d8bacd23 Document RedisCacheManagerBuilderCustomizer
See gh-19819
5 years ago
Andy Wilkinson c85f19b75b Revert "Add profiles directly to the application environment for tests"
This reverts commit 487b9cbf96.

Fixes gh-19788
5 years ago
Andy Wilkinson 235b74ca12 Merge branch '2.2.x'
Closes gh-19814
5 years ago
Andy Wilkinson 7693d332fa Upgrade to Dependency Management Plugin 1.0.9.RELEASE
Closes gh-19783
5 years ago
Stephane Nicoll 4ab19c3cfb Upgrade to Reactor Dysprosium-SR4
Closes gh-19809
5 years ago
Stephane Nicoll ae561ce59b Upgrade to Reactor Dysprosium-SR4
Closes gh-19795
5 years ago
Andy Wilkinson bfdb49f2a2 Retry when findAvailableTcpPort returns an unavailable port
Closes gh-19801
5 years ago
Andy Wilkinson fabd692812 Upgrade to Spring HATEOAS 1.1.0.M1
Closes gh-19649
5 years ago
Andy Wilkinson 60fcc4bab1 Upgrade to Spring AMQP 2.2.3.RELEASE
Closes gh-19651
5 years ago
Andy Wilkinson 408f17f821 Close FileInputStreams in RepackagerTests 5 years ago
Andy Wilkinson 724597d45f Use a centrally managed version for commons-compress 5 years ago
Stephane Nicoll 986bef9cba Upgrade to Spring Data Neumann-M2
Closes gh-19588
5 years ago
Phillip Webb abad00754b Revert "Upgrade to Spring Data Neumann-M1"
This reverts commit e44206e88e.
5 years ago
Phillip Webb fd792cedaf Polish DisabledIfDockerUnavailable
Convert `DisabledIfDockerUnavailable` to be an annotation and make
it slightly less noisy.
5 years ago
Madhura Bhave cf01f9fba0 Add tests for configuring layered jar layout
Closes gh-19768
5 years ago
Stephane Nicoll e44206e88e Upgrade to Spring Data Neumann-M1
Closes gh-19588
5 years ago
dreis2211 dcdadb9aa7 Make Tomcat javadoc link version dependent
See gh-19632
5 years ago
Stephane Nicoll 7270ca5cf4 Polish "Remove deprecated Joda-Time support"
See gh-19699
5 years ago
Scott Frederick c4592e7df8 Remove deprecated Joda-Time support
See gh-19699
5 years ago
Scott Frederick 8f102aee68 Remove deprecated 2.2 code
See gh-19699
5 years ago
Scott Frederick 2e32cb2af1 Remove deprecated HealthIndicator and HealthAggregator 2.2 code
See gh-19699
5 years ago
Scott Frederick 1f1b06dfe2 Remove deprecated Actuator metrics 2.2 code
See gh-19699
5 years ago
Stephane Nicoll 03139f066b Polish "Remove deprecated logging properties"
See gh-19699
5 years ago
Scott Frederick 7031a3b17d Remove deprecated logging properties
See gh-19699
5 years ago
Stephane Nicoll 421c464dd8 Deprecate CachingOperationInvoker#apply
This commit deprecates the only public accessor to
`CacheOperationInvoker` so that we can make the entire class package
private in the next feature release.

Closes gh-19089
5 years ago
Andy Wilkinson d6631a578b Upgrade to Micrometer 1.3.2
Closes gh-19778
5 years ago
Andy Wilkinson 9b5af810dd Merge branch '2.2.x'
Closes gh-19774
5 years ago
Andy Wilkinson 9d5975bd09 Upgrade to Gradle 6.1
Closes gh-19772
5 years ago
Andy Wilkinson 4c8626ea56 Allow Boot's Jetty error handler to be overridden
Fixes gh-19520
5 years ago
Andy Wilkinson a162c8ac0b Revert "Build against Micrometer 1.3.3 snapshots"
The release didn't happen in time for 2.2.3.

See gh-19645
5 years ago
Andy Wilkinson 8f209ced6d Revert "Start building against Micrometer 1.1.10 snapshots"
The release did not happen in time for 2.1.12.

See gh-19649.
5 years ago
Phillip Webb 8fde088574 Add layered jar layout support to the maven plugin
Update the Maven plugin with a new `LAYERED_JAR` layout option.

See gh-19768
5 years ago
Madhura Bhave e9d61bac75 Support generation and loading of layered jars
Support an alternative fat jar format that is more amenable to Docker
image layers.

The new format arranges files in the following structure:

	BOOT-INF/
	  layers/
	    <layer-name #1>
	      /classes
	      /lib
	    <layer-name #2>
	      /classes
	      /lib

The `BOOT-INF/layers.idx` file provides the names of the layers and the
order in which they should be added (starting with the least changed).

The `JarLauncher` class can load layered jars in both fat and exploded
forms.

Closes gh-19767

Co-authored-by: Phillip Webb <pwebb@pivotal.io>
5 years ago
Madhura Bhave 45b1ab46c3 Add classpath index support for exploded archives
Update the `Repackager` class so that an additional `classpath.idx` file
is written into the jar that provides the original order of the
classpath. The `JarLauncher` class now uses this file when running as
an exploded archive to ensure that the classpath order is the same as
when running from the far jar.

Closes gh-9128

Co-authored-by: Phillip Webb <pwebb@pivotal.io>
5 years ago
Phillip Webb ad72f86bdb Polish loader and loader-tools
Polish and refactor `spring-boot-loader` and `spring-boot-loader-tools`
to make it easier to add indexing and layering support.

Closes gh-19766
5 years ago
Andy Wilkinson 56e30258fb Merge branch '2.2.x' 5 years ago
Andy Wilkinson b7e250eb04 Merge branch '2.1.x' into 2.2.x 5 years ago
Andy Wilkinson ebebe09a9d Fix file handle leak in JarFileTests
The JarFile was not being closed which linked a file handle and caused
a test failure on Windows.

The local variable has been renamed as, when declared in a
try-with-resources, Checkstyle was confused by the shadowing of the
jarFile field and required references to jarFile within the try-block
the be prefixed with this.

See gh-19595
5 years ago
Andy Wilkinson 18462796bf Upgrade to Spring Kafka 2.3.5
Closes gh-19613
5 years ago
Andy Wilkinson 072b253b14 Upgrade to Spring Integration 5.2.3
Closes gh-19647
5 years ago
Andy Wilkinson cef9f0f3f5 Upgrade to Spring AMQP 2.2.3
Closes gh-19646
5 years ago
Andy Wilkinson b982bbec37 Upgrade to Spring Kafka 2.2.12.RELEASE
Closes gh-19761
5 years ago
Andy Wilkinson 5c7bd33fed Upgrade to Spring AMQP 2.1.13
Closes gh-19641
5 years ago
Andy Wilkinson 2e8dc83a80 Upgrade to Spring Data Moore-SR4
Closes gh-19648
5 years ago
Andy Wilkinson e6fa8530d7 Upgrade to Spring HATEOAS 1.0.3.RELEASE
Closes gh-19644
5 years ago
Andy Wilkinson 6e93ea3631 Upgrade to Spring Retry 1.2.5.RELEASE
Closes gh-19758
5 years ago
Andy Wilkinson 8d4711617f Upgrade to Slf4j 1.7.30
Closes gh-19757
5 years ago
Andy Wilkinson 5083209447 Upgrade to Postgresql 42.2.9
Closes gh-19756
5 years ago
Andy Wilkinson 89c20a3ada Upgrade to Neo4j Ogm 3.2.6
Closes gh-19755
5 years ago
Andy Wilkinson 443d1a6a21 Upgrade to Liquibase 3.8.5
Closes gh-19754
5 years ago
Andy Wilkinson 17d584fd1d Upgrade to Kotlin Coroutines 1.3.3
Closes gh-19753
5 years ago
Andy Wilkinson 57414039e6 Upgrade to Infinispan 9.4.17.Final
Closes gh-19752
5 years ago
Andy Wilkinson 2989af4cee Upgrade to Hibernate 5.4.10.Final
Closes gh-19751
5 years ago