100 Commits
Author SHA1 Message Date
Phillip Webb 5c938fc8bc Update copyright year of changed files 2024-11-20 20:57:27 -08:00
Phillip Webb 7d1cc78d6b Retry on failed plainWar test
Add retry logic for plainWar in an attempt to deal with flaky Tomcat
downloads.
2024-11-15 14:24:32 -08:00
Phillip Webb a20cc3d4e6 Clarify documentation for 'spring.datasource.type'
Closes gh-43193
2024-11-15 13:26:45 -08:00
Phillip Webb f013c0edc3 Automatically run check task from buildSrc
Update `buildSrc` so that the `check` command is run as part of the
regular build. This restores the behavior of Gradle 7.x and will
hopefully allow us to catch test issues earlier.

Closes gh-43192
2024-11-15 13:20:46 -08:00
Phillip Webb 8591eda5a8 Fix failing buildSrc build 2024-11-15 08:57:16 -08:00
Phillip Webb 25b6477aa8 Support alternative media type format
Update `ExportedImageTar` media type detection to support `tar+gzip`
as well as `tar.gzip`. Recent updates to Docker Desktop appear to have
changed the format.

Fixes gh-43126
2024-11-14 15:25:15 -08:00
Phillip Webb a293560237 Support nested OCI indexes
Update `ExportedImageTar.IndexLayerArchiveFactory` to support nested
indexes. Nested indexes support a layer of interaction where the
`index.json` file points to a blob that contains the read index to use.

Prior to this commit, we only supported indexes provided directly by
the `index.json` file. This missing support results in "buildpack.toml:
no such file or directory" errors when referencing specific buildpacks
and using Docker Engine 27.3.1 or above.

See gh-43126
2024-11-14 15:24:47 -08:00
Phillip Webb 83e7ccd638 Polish prohibit reason 2024-11-14 10:41:38 -08:00
Phillip Webb 82352868ea Downgrade to HSQLDB 2.7.3 and block upgrade
Closes gh-43165
2024-11-14 10:31:50 -08:00
Phillip Webb 4f7de1c889 Fix SslOptions.isSpecified() logic
Prior to this commit `SslOptions.isSpecified()` only returned `true` if
both ciphers and enabled protocols were set. If should have returned
`true` if either were set.

Fixes gh-43082
2024-11-09 00:00:33 -08:00
Phillip Webb c62a018830 Align buildpack certificate and key parsers with SSL versions
Closes gh-37969
2024-11-04 15:53:39 -08:00
Phillip Webb 8f72f03def Merge pull request #42986 from nosan
* pr/42986:
  Remove explicit '.xml' suffix check from `LogbackLoggingSystem`

Closes gh-42986
2024-11-04 14:33:55 -08:00
Phillip Webb 202db9b7f4 Update copyright year of changed files 2024-11-04 14:28:23 -08:00
Phillip Webb 9d6cfba278 Merge pull request #42876 from quaff
* pr/42876:
  Remove unnecessary call of superclass constructor

Closes gh-42876
2024-10-25 18:21:02 -07:00
Phillip Webb dc32cb87f4 Merge pull request #42868 from 1328032567
* pr/42868:
  Update HttpWebServiceMessageSenderBuilder javadoc

Closes gh-42868
2024-10-25 18:18:17 -07:00
Phillip Webb a45844e7cd Reclaim docker disk space on CI during build
Attempt to fix disk space issues by removing large docker images
after they have been used.

This commit backports commits from `3.4.x` that were applied to
test the changes.

Closes gh-42776
2024-10-18 10:58:27 -07:00
Phillip Webb 3481107ff7 Update copyright year of changed files 2024-10-18 10:48:29 -07:00
Phillip Webb 851395a5ab Merge pull request #42691 from IMWoo94
* pr/42691:
  Remove dead "Converting a jar to a war" guide link

Closes gh-42691
2024-10-16 16:50:52 -07:00
Phillip Webb 41ae973d16 Update copyright year of changed files 2024-10-16 13:08:37 -07:00
Phillip Webb a4473b97aa Polish 2024-10-16 12:38:34 -07:00
Phillip Webb 51ff8d411c Fix Oracle JDK download URLs
Closes gh-42704
2024-10-15 18:02:40 -07:00
Phillip Webb c88a2dc116 Attempt to fix ant smoke test
See gh-42333
2024-10-01 17:49:24 -07:00
Phillip Webb d342eefa27 Use Sync task rather than Copy
See gh-42333
2024-10-01 17:19:52 -07:00
Phillip Webb e5b03a7741 Second attempt to fix spring-boot-smoke-test-ant
Fix error introduced in commit d44e7c9af2

See gh-42333
2024-10-01 16:56:37 -07:00
Phillip Webb 1dce2cd62e Fix spring-boot-smoke-test-ant
Fix error introduced in commit d44e7c9af2

See gh-42333
2024-10-01 16:25:50 -07:00
Phillip Webb 707d858a08 Attempt to fix distribute conditions
See gh-42333
2024-10-01 15:43:34 -07:00
Phillip Webb 5b71d94d5b Attempt to fix send-notification 'uses'
See gh-42333
2024-10-01 15:34:32 -07:00
Phillip Webb c3b8337638 Unify commercial and OSS workflows
See gh-42333
2024-10-01 15:27:07 -07:00
Phillip Webb ab6d5576a7 Fix typo
See gh-42333
2024-10-01 13:51:44 -07:00
Phillip Webb 03d795f9bc Add commercial repository references to CI
See gh-42333
2024-10-01 13:51:11 -07:00
Phillip Webb 05b4edfd2c Use ifeval block for Commercial/OSS documentation
See gh-42333
2024-09-30 15:56:40 -07:00
Phillip Webb 7f8fe4251d Fix SpringRepositorySupport environment support
See gh-42333
2024-09-30 15:15:55 -07:00
Phillip Webb f7d7d16ecd Polish logger naming 2024-09-30 11:44:28 -07:00
Phillip Webb 72de717d2a Skip Homebrew formula creation for non OSS build
See gh-42333
2024-09-30 11:42:16 -07:00
Phillip Webb 89ce26bf26 Skip SCM and IssueManagement POM configuration for non OSS builds
See gh-42333
2024-09-30 11:30:56 -07:00
Phillip Webb d44e7c9af2 Dynamically populate repositories used in Ant/Maven integration tests
Update build scripts and tests so that repository settings are copied
dynamically from the build.

See gh-42333
2024-09-27 17:33:00 -07:00
Phillip Webb 7d8507d186 Polish 2024-09-27 17:31:24 -07:00
Phillip Webb 0ac06696f7 Be defensive when accessing properties in SpringRepositorySupport.groovy
See gh-42333
2024-09-27 13:18:51 -07:00
Phillip Webb c347ccaa76 Attempt to fix system tests following repository updates
See gh-42333
2024-09-27 12:17:29 -07:00
Phillip Webb 9836011ffd Create extension to configure Spring maven repositories
Create a small Groovy script that can be used in `settings.gradle`
files to extend `repositories` to support the various maven
repositories required for our build.

See gh-42333
2024-09-27 10:30:20 -07:00
Phillip Webb 4e02c438e4 Update BOMR to use repository names rather than SpringRepository
Update BOMR to use repositories names so that we can delete the
`SpringRepository` logic.

See gh-42333
2024-09-26 20:42:38 -07:00
Phillip Webb cd2aa2b97d Use toolchains for Java 21
See gh-42433
2024-09-24 18:25:59 -07:00
Phillip Webb 1d3fff402f Fix checkstyle tool version reference 2024-09-24 16:48:52 -07:00
Phillip Webb 68aed50615 Use toolchains for Java 22
See gh-42433
2024-09-24 15:24:22 -07:00
Phillip Webb ad72411e2b Apply conventions plugin to all subprojects
Closes gh-42438
2024-09-24 14:26:32 -07:00
Phillip Webb 54c3ccb4df Fix checkstyle violations in testng smoke test
Add conventions plugin and fix surfaced checkstyle errors.
2024-09-24 13:51:16 -07:00
Phillip Webb 54df1edf8c Upgrade to Gradle 8.10.2
Closes gh-42435
2024-09-24 13:22:44 -07:00
Phillip Webb eafe61c4ca Backport upgrade to Gradle 8.10.1
Cherry-pick commits d756bf4e86, 083ac67d13 and 162c929a80 to
upgrade to Gradle 8.10.1.

Closes gh-42433
2024-09-24 12:55:29 -07:00
Phillip Webb 23ddad1ebd Propagate gradle.properties to buildSrc
Update `buildSrc` so that properties frok the root `gradle.properties`
file are available.

See gh-42333
2024-09-23 21:59:39 -07:00
Phillip Webb 0781e71e5e Merge pull request #42413 from arefbehboudi
* pr/42413:
  Polish

Closes gh-42413
2024-09-22 17:47:13 -07:00
Phillip Webb 19d9e3b6cc Update BOM plugin to support commercial releases
See gh-42333
2024-09-20 17:33:46 -07:00
Phillip Webb 80b1944878 Update changelog-generator for commercial builds
See gh-42333
2024-09-20 16:10:33 -07:00
Phillip Webb f9379f4576 Apply nohttp check per-project rather than at root
Switch nohttp checks to a convention that is applied per-project rather
than at the root. This should help to reduce memory consumption.

Closes gh-42332
2024-09-18 15:14:52 +01:00
Phillip Webb 9726ddfe42 Add 'spring.build-type' property
See gh-42333
2024-09-17 12:32:50 -07:00
Phillip Webb cad5dd2b85 Use variables for runs-on settings
See gh-42333
2024-09-17 12:25:54 -07:00
Phillip Webb 8686ee80d2 Merge pull request #42277 from quaff
* pr/42277:
  Add tests to ensure private constructor is not used for binding

Closes gh-42277
2024-09-12 18:56:51 -07:00
Phillip Webb 03e7be3ccf Document that spring.jmx.enabled is not for third-party libraries
Closes gh-42272
2024-09-12 18:35:57 -07:00
Phillip Webb f3645bba13 Update copyright year of changed files 2024-09-03 21:04:26 -07:00
Phillip Webb 8358630bd5 Remove "Converting a Spring Boot JAR Application to a WAR"
Remove "Converting a Spring Boot JAR Application to a WAR" since the
guide is no longer available.

Closes gh-42110
2024-09-03 20:15:56 -07:00
Phillip Webb aeafa20727 Prevent 'Recursive update' exceptions with Restarter
Update `Restarter` to prevent 'Recursive update' `IllegalStateException`
from being thrown. Calls to `objectFactory.getObject()` now happen
outside of `computeIfAbsent`.

Fixes gh-41571
2024-09-03 12:09:40 -07:00
Phillip Webb f58728530b Merge pull request #42069 from izeye
* pr/42069:
  Polish

Closes gh-42069
2024-09-01 18:51:20 -07:00
Phillip Webb 8c1d9872d2 Fix support for large zip files
Update `spring-boot-loader` to support large zip files by correctly
dealing with unsigned ints.

Fixes gh-42012
2024-09-01 15:13:46 -07:00
Phillip Webb cc2dc558f1 Don't report already migrated properties when has group
Refine the fix adding commit 962936370a so that items with a group
are correctly checked.

Fixes gh-42068
2024-08-31 11:18:47 -07:00
Phillip Webb 10855056cc Support blank MongoDB 'replica-set-name' properties
Update `null` checks to `StringUtils.hasText` to allow the
`replica-set-name' property to be overridden with an empty string.

Fixes gh-42055
2024-08-29 15:05:33 -07:00
Phillip Webb f1987e6f8b Update copyright year of changed files 2024-08-19 16:45:34 -07:00
Phillip Webb 1a8e9c14b1 Fix "Use Spring Data repositories" how-to to refer to interfaces
The previous how-to accidentally referenced the `@Repository` annotation
and not the Spring Data `Repository` interface.

Closes gh-41625
2024-07-26 16:20:09 +01:00
Phillip Webb 61dc82d836 Update copyright year of changed files 2024-07-22 18:16:19 +01:00
Phillip Webb ff1a4654d2 Polish 2024-07-22 18:15:57 +01:00
Phillip Webb 962936370a Don't report already migrated properties
Update `PropertiesMigrationReporter` so that already migrated properties
are not reported. Prior to this commit, if a deprecated property was
replaced by a property that could bind with the name relaxed name it
would be reported. For example: `test.someproperty` being replaced with
`test.some-property`.

In order to check the actual underlying property name, the
`PropertySourceOrigin` class has been updated so that it is always
returned, even if another `Origin` is available.

Fixes gh-35774
2024-06-26 16:24:32 -07:00
Phillip Webb 712d935c8e Fix checkstyle violation
See gh-35786
2024-06-25 22:16:03 -07:00
Phillip Webb eef4c3c2c0 Allow TestcontainersLifecycleBeanPostProcessor to detect scoped beans
Update `TestcontainersLifecycleBeanPostProcessor` so that scoped beans
are included.

Fixes gh-35786
2024-06-25 22:00:34 -07:00
Phillip Webb 8bcdb4b06b Improve error message when spring.config.import fails to resolve
Update `StandardConfigDataLocationResolver` to give a better error
message when a location cannot be resolved. Prior to this commit, a
location with a misspelling in the prefix would only give an error
about the file extension being not known.

Fixes gh-36243
2024-06-25 17:08:24 -07:00
Phillip Webb 85f6641a7e Allow 'npipe://' prefix in Docker host address
Update `LocalHttpClientTransport` to support explicit `npipe://` prefix
in the host name. This is the format used in the Docker config from
v4.31.1 onward.

Fixes gh-41199
2024-06-25 12:40:11 -07:00
Phillip Webb 57f452fec1 Disable ReactorResourceFactory use of global resources in tests
Add `ContextCustomizerFactory` to automatically disable the use of
`ReactorResourceFactory` global resources in tests.

Fixes gh-38199
2024-06-24 11:22:11 -07:00
Phillip Webb 2a4582b084 Update copyright year of changed files 2024-06-19 22:54:40 -07:00
Phillip Webb 242263d8d4 Update GitProperties date/time coercion to deal with more patterns
Update `GitProperties` to deal with updated date/time patterns that
are now used by the `git-commit-id` maven plugin. Previous patterns are
still supported as a fallback.

Fixes gh-41109
2024-06-18 17:01:03 -07:00
Phillip Webb 60b7e6cf23 Allow 'status' and 'error' to be excluded from error response
Update `ErrorAttributeOptions` to allow the `status` and `error`
fields to be excluded from the response without throwing a
NullPointerException.

Fixes gh-30011
2024-06-17 16:48:28 -07:00
Phillip Webb 96586525d5 Make DelegatingFilterProxyRegistrationBeanTests idempotent
Fixes gh-38630
2024-06-14 11:03:09 -07:00
Phillip Webb 0c1c7e844c Don't detect main method from launcher classes
Update `MainMethod` discovery so that launcher classes from the
`org.springframework.boot.loader` code are not considered. This restores
the behavior of Spring Boot 2.7.11 and allows remote restart of uber
jars without pulling the loader classes into the `RestartClassLoader`.

Fixes gh-39733
2024-06-14 10:40:49 -07:00
Phillip Webb 847ff50676 Merge pull request #40974 from asashour
* pr/40974:
  Polish "Use method references when possible in test code"
  Use method references when possible in test code
  Polish "Use method references when possible"
  Use method references when possible

Closes gh-40974
2024-06-11 13:32:18 -07:00
Phillip Webb bcbcafaab2 Polish "Use method references when possible in test code"
See gh-40974
2024-06-11 12:58:04 -07:00
Phillip Webb dcccb3b2b1 Polish "Use method references when possible"
See gh-40974
2024-06-11 12:57:59 -07:00
Phillip Webb ef99ce0ba9 Merge pull request #40985 from asashour
* pr/40985:
  Prevent unnecessary unboxing
  Remove redundant cast
  Polish "Use 'switch' instead of 'if'"
  Use 'switch' instead of 'if'

Closes gh-40985
2024-06-11 12:29:05 -07:00
Phillip Webb a18cb37657 Polish "Use 'switch' instead of 'if'"
See gh-40985
2024-06-11 12:24:13 -07:00
Phillip Webb 9ddb7b0238 Merge pull request #41053 from PiyalAhmed
* pr/41053:
  Polish "Use constructor rather than Collection.addAll"
  Use constructor rather than Collection.addAll

Closes gh-41053
2024-06-11 10:45:07 -07:00
Phillip Webb ecc9a2352d Polish "Use constructor rather than Collection.addAll"
See gh-41053
2024-06-11 10:02:27 -07:00
Phillip Webb d37098153c Polish 2024-06-11 09:35:59 -07:00
Phillip Webb 39ab959af8 Merge branch '3.1.x' into 3.2.x
Closes gh-40845
2024-05-20 21:06:59 -07:00
Phillip Webb f743dc82fc Improve graceful shutdown documentation to remove ambiguity
Closes gh-40108
2024-05-20 21:06:22 -07:00
Phillip Webb 44619a9eef Merge branch '3.1.x' into 3.2.x
Closes gh-40843
2024-05-20 18:58:09 -07:00
Phillip Webb f5f02d6df1 Document that a private constructor opts-out of constructor binding
Closes gh-34820
2024-05-20 18:56:46 -07:00
Phillip Webb 2d77ebcaed Merge branch '3.1.x' into 3.2.x
Closes gh-40684
2024-05-09 12:00:56 -07:00
Phillip Webb 101b3a5416 Use OSS self hosted runners
Closes gh-40683
2024-05-09 12:00:28 -07:00
Phillip Webb 24bfe5087f Fix checkstyle violation
See gh-40549
2024-05-08 18:28:09 -07:00
Phillip Webb 8457fc333f Adapt Windows path handling fix to deal with Jetty
Update `NestedLocation` to deal with the fact that Jetty attempts
to fix URLs.

See gh-40549
2024-05-08 18:04:17 -07:00
Phillip Webb 7708ec7592 Fix Windows path handling for nested jars
Update `Path` creation for nested locations to allow both UNC and classic
file references to be used. This commit attempts to align our URL
handling with that of standard file URLs. The `NestedLocation` class
no longer attempts to remove leading all `\` characters and instead
only removes the first `\` when the second char is `:`. This duplicates
the logic found in Java's own internal `WindowsUriSupport` class which
is used when calling `Path.of(url)` with a `file:` URL.

Fixes gh-40549
2024-05-08 15:44:03 -07:00
Phillip Webb 8a72e55106 Fix UriPathEncoder bug to improve performance
Fix `isAllowed` check and write test to ensure that additional object
instances are not created unnecessarily.

See gh-40615
2024-05-03 12:29:41 -07:00
Phillip Webb d0ce4daec1 Use URI encoded values when creating NestedPath URIs
Update `NestedPath.toUri()` so that the URI is constructed using encoded
strings.

Fixes gh-40615
2024-05-02 15:53:01 -07:00
Phillip Webb 93728cdfb1 Merge branch '3.1.x' into 3.2.x
Closes gh-40600
2024-05-01 22:55:30 -07:00
Phillip Webb a22c909ddf Merge pull request #40590 from izeye
* pr/40590:
  Remove reassignments for builders in GraphQL auto-configurations

Closes gh-40590
2024-05-01 22:52:24 -07:00